Answers for "rename branch git"

75

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>
Posted by: Guest on March-05-2020
7

git change branch name

git branch –m old-name new-name
Posted by: Guest on December-27-2020
49

rename branch git

git branch -m <new_name>
Posted by: Guest on March-01-2020
12

edit branch name git

$ git checkout Branch-Name-You-Want-to-Change
$ git branch -m New-Branch-Name
Posted by: Guest on February-17-2020
14

git rename local branch

git branch -m <oldname> <newname>
Posted by: Guest on August-10-2020
4

rename branch git

git branch -m <new_name> //currenct branch switch name 
git branch -m <select_branch_name> <new_branch_name>
Posted by: Guest on February-01-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language