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.
1 2 | //If you want to rename the current branch, you can do: git branch -m <newname> |
Use the following Git commands to rename your remote/origin branch.
1 2 | // Delete the old-name remote branch and push the new-name local branch. git push origin :old-name new-name |
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.