Skip to content

Instantly share code, notes, and snippets.

@davebeach
Last active October 9, 2017 18:59
Show Gist options
  • Save davebeach/6118f04aa0dce2fdfdd7c043b66f0e35 to your computer and use it in GitHub Desktop.
Save davebeach/6118f04aa0dce2fdfdd7c043b66f0e35 to your computer and use it in GitHub Desktop.
GIT Procedures

Rename a Branch

  1. Create new branch name
git branch -m new-name
git branch -m old-name new-name
  1. Update remote
git push origin :old-name new-name
git push origin -u new-name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment