q2zekw
Last Updated: February 25, 2016
·
639
· michaelminter
914f05e2dee020ca927249a8dd583bf7

Rename a branch in git

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.

Say Thanks
Respond

1 Response
Add your response

1890
Photo on 08.01.2013 at 04.15

git branch --move oldbranch newbranch could be more verbose

over 1 year ago ·
Filed Under

Awesome Job

D591c606 4ca0 11e7 9f4d aa94ae9f338f
Staff Frontend Engineer
·
Remote! or San Francisco, CA
·
Full Time