Archives for: August 2018

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: