Skip to content

Instantly share code, notes, and snippets.

@bjing
Last active October 30, 2021 08:25
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 bjing/6b24aac76a6219a1f1078ed646132f4c to your computer and use it in GitHub Desktop.
Save bjing/6b24aac76a6219a1f1078ed646132f4c to your computer and use it in GitHub Desktop.
1. Rename branch from Github branch settings.
2. Then on local checkout:
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