Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
git branch -m old_branch new_branch # Rename branch locally
git push origin :old_branch # Delete the old branch
git push -u origin new_branch # Push the new branch, set local branch to track the new remote
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question