Skip to content

Instantly share code, notes, and snippets.

@Puppo
Created April 21, 2022 07:28
Show Gist options
  • Save Puppo/197779644e77fbe60d8f792825b2375e to your computer and use it in GitHub Desktop.
Save Puppo/197779644e77fbe60d8f792825b2375e to your computer and use it in GitHub Desktop.
Rename Local and Remote Branch
git checkout <old_name>
git branch -m <new_name>
git push origin -u <new_name>
git push origin --delete <old_name>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment