Skip to content

Instantly share code, notes, and snippets.

@cmccormack
Created June 16, 2020 02:30
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 cmccormack/94b5e77ed90f6bba5411557f94063370 to your computer and use it in GitHub Desktop.
Save cmccormack/94b5e77ed90f6bba5411557f94063370 to your computer and use it in GitHub Desktop.
blm-main

Rename master to main and update remote while setting new upstream

git branch -m master main && git push -u origin main

Make your main branch on Github the default: Settings > Branches > Default Branch

Delete remote master branch

git push origin --delete master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment