Skip to content

Instantly share code, notes, and snippets.

@fatherjack
Created June 15, 2020 21:16
Show Gist options
  • Save fatherjack/c2660c4f0526af7b6a06f3e0dbf9d0e9 to your computer and use it in GitHub Desktop.
Save fatherjack/c2660c4f0526af7b6a06f3e0dbf9d0e9 to your computer and use it in GitHub Desktop.
git branch -m master main
git checkout main
git push -u origin main
now go to github.com and change the default branch ot main
created with reference to https://www.hanselman.com/blog/EasilyRenameYourGitDefaultBranchFromMasterToMain.aspx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment