Rename a branch in git
In git, branching is cheap and easy. You do it all the time (you're not? Well, you should). Sometimes, though, you create a new feature branch, only to come to the conclusion later that the name you gave it does not cover the stuff you've been doing.
No problem for git! Renaming a branch is really easy:
git branch -m old_branch new_branch
That's all.
Written by Michael Minter
Related protips
1 Response
git branch --move oldbranch newbranch could be more verbose
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Git
Authors
khasinski
591.1K
dmichaelavila
500.4K
Related Tags
#git
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#