Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

rename remote branch in git

git push origin :<branch_to_rename>
git checkout -b <new_branch_name>
git push --set-upstream origin <new_branch_name>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #rename #remote #branch #git
ADD COMMENT
Topic
Name
9+6 =