a blog for those who code

Monday 23 June 2014

Rename local Git branch

If you want to rename a local branch which you are not currently in, it can be done using below command...





git branch -m <old_branch_name> <new_branch_name>.

If you want to rename the current branch which you are currently in, you can do it using the below mentioned command...

git branch -m <new_branch_name>

Please Like and Share the CodingDefined.com blog, if you find it interesting and helpful.

No comments:

Post a Comment