Skip to content

Instantly share code, notes, and snippets.

@acook
Created February 25, 2021 05:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save acook/4602431ff376ba38c658a399314501b9 to your computer and use it in GitHub Desktop.
Save acook/4602431ff376ba38c658a399314501b9 to your computer and use it in GitHub Desktop.
Rename local branch from master to main using git commandline
git branch -m master main
git fetch origin
git branch -u origin/main main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment