How do I rename a local Git branch?

Posted by Editorial Staff | Updated on

If you want rename git local or remote/origin branch, then this answer is for you. Use the following Git commands to rename your local branch.

How to rename git remote branch

Use the following Git commands to rename your remote/origin branch.


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers