Git: Rename a Branch

Git: Rename a Branch

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

git-rename-branch
Reference: https://gist.github.com/lttlrck/9628955

Leave a Reply

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

fifteen − twelve =