Skip to content

Instantly share code, notes, and snippets.

@kelynch
Created June 15, 2021 18:43
Show Gist options
  • Save kelynch/9ba595e369c304b560477f3636b41e8a to your computer and use it in GitHub Desktop.
Save kelynch/9ba595e369c304b560477f3636b41e8a to your computer and use it in GitHub Desktop.
Update your local git clone from master to main
# Run the following on your local git clone:
git checkout master
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