Skip to content

Instantly share code, notes, and snippets.

@estrattonbailey
Created August 23, 2022 17:58
Show Gist options
  • Save estrattonbailey/83764baf5b6e2de0f5492206d5316845 to your computer and use it in GitHub Desktop.
Save estrattonbailey/83764baf5b6e2de0f5492206d5316845 to your computer and use it in GitHub Desktop.
Move `master` -> `main` (I always forget this lol)
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