Skip to content

Instantly share code, notes, and snippets.

@wingkwong
Created February 18, 2022 03:36
Show Gist options
  • Save wingkwong/bdab219e304dc4005220507bd947ba64 to your computer and use it in GitHub Desktop.
Save wingkwong/bdab219e304dc4005220507bd947ba64 to your computer and use it in GitHub Desktop.
Update main to master on your local env
git branch -m main master
git fetch origin
git branch -u origin/master master
git remote set-head origin -a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment