Skip to content

Instantly share code, notes, and snippets.

@johnmackintosh
Created March 14, 2023 11:33
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 johnmackintosh/3cc2f970838af947d3fb6ecb7d570531 to your computer and use it in GitHub Desktop.
Save johnmackintosh/3cc2f970838af947d3fb6ecb7d570531 to your computer and use it in GitHub Desktop.
code to update local repo from 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