Git: Rename a Branch

By | April 27, 2015
git branch -m old_branch_name new_branch_name #Rename branch locally
git push origin :development #Delete the old branch
git push --set-upstream origin new_branch_name #Push the new branch, set local branch to track the new remote


Leave a Reply

Your email address will not be published. Required fields are marked *

six + 13 =