Rename git branch locally and remotely

Sometimes by mistake we have a situation to rename the remote and local git branch name. Below steps will help to do same –

1. Rename your local branch.

2. Delete the old-name remote branch and push the new-name local branch.

3. Reset the upstream branch for the new-name local branch.

Switch to the branch and then:



Leave a Reply

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