Skip to content

Instantly share code, notes, and snippets.

@svend
Created April 12, 2021 22:29
Show Gist options
  • Select an option

  • Save svend/f95ef285ad7d7b9722bab5df5b1caa3c to your computer and use it in GitHub Desktop.

Select an option

Save svend/f95ef285ad7d7b9722bab5df5b1caa3c to your computer and use it in GitHub Desktop.

After chaninging a GitHub repository's default from master to main, run locally:

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