Skip to content

Instantly share code, notes, and snippets.

@ronanmccoy
Created June 27, 2022 23:15
Show Gist options
  • Save ronanmccoy/8a532823099a7dda70653069f277bf00 to your computer and use it in GitHub Desktop.
Save ronanmccoy/8a532823099a7dda70653069f277bf00 to your computer and use it in GitHub Desktop.
Rename branch name on local environment
git branch -m master <BRANCH>
git fetch origin
git branch -u origin/<BRANCH> <BRANCH>
git remote set-head origin -a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment