Skip to content

Instantly share code, notes, and snippets.

@oalders
Created April 28, 2021 15:08
Show Gist options
  • Select an option

  • Save oalders/5d89ba6784d84fdba2a8911e5a770932 to your computer and use it in GitHub Desktop.

Select an option

Save oalders/5d89ba6784d84fdba2a8911e5a770932 to your computer and use it in GitHub Desktop.
Renaming master to main
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