Skip to content

Instantly share code, notes, and snippets.

@josephwambura
Last active March 26, 2022 04:50
Show Gist options
  • Save josephwambura/cc7bfe8b0e7917c9f618fe8d4e91c8c1 to your computer and use it in GitHub Desktop.
Save josephwambura/cc7bfe8b0e7917c9f618fe8d4e91c8c1 to your computer and use it in GitHub Desktop.

If you have a local clone, you can update it by running the following commands.

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