0
Q:

rename branch git

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>
22
git branch -m <new_name>
33
$ git checkout Branch-Name-You-Want-to-Change
$ git branch -m New-Branch-Name
6
git branch -m <newname>
13
git push origin -u <new_name>
0

New to Communities?

Join the community