Skip to content

Latest commit

 

History

History
12 lines (10 loc) · 271 Bytes

rename-a-git-branch.md

File metadata and controls

12 lines (10 loc) · 271 Bytes

Rename a Git Branch

If you are on the branch you want to rename

git branch -m newname

If you are not on that branch

git branch (-m | -M) [<oldbranch>] <newbranch>

source