Question: how to change the name of branch in git?
Answer: Start by switching to the local branch which you want to rename: git checkout <old_name> Rename the local branch by typing: git branch -m <new_name> ...  Push the <new_name> local branch and reset the upstream branch: git push origin -u <new_name>