Skip to content

Instantly share code, notes, and snippets.

@netraagal
Created April 12, 2021 08:15
Show Gist options
  • Save netraagal/052d5cbcdf359fc6fa9cd34ab74662e8 to your computer and use it in GitHub Desktop.
Save netraagal/052d5cbcdf359fc6fa9cd34ab74662e8 to your computer and use it in GitHub Desktop.
Rename git 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