By mistake If you have named a branch incorrectly and pushed this to the remote repository then you are at correct place. Rename your local branch. If you are on the branch you want to rename: git branch -m new-name If you are on a different branch: git branch -m old-name new-name Delete the old-name from remote and push new-name git push origin :old-name new-name Reset the upstream for new-name Switch to the branch and then git push origin -u new-name
Live, Love, Explore, Learn and Share