Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

git rename branch

git branch -m <oldname> <newname> # Any Branch
git branch -m <newname> # Current Branch

# For windows if you get "Branch already exists" error
git branch -M <newname>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #git #rename #branch
ADD COMMENT
Topic
Name
6+9 =