Skip to content

Instantly share code, notes, and snippets.

@electron0zero
Created April 22, 2021 12:15
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 electron0zero/7a71c41fd36d9dea9e68446bd8554808 to your computer and use it in GitHub Desktop.
Save electron0zero/7a71c41fd36d9dea9e68446bd8554808 to your computer and use it in GitHub Desktop.
GitHub rename master to main for local repos.

The default branch has been renamed!

master is now named main

If you have a local clone, you can update it by running:

git branch -m master main
git fetch origin
git branch -u origin/main main
git remote set-head origin -a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment