Skip to content

Instantly share code, notes, and snippets.

@sahal
Created July 27, 2022 18:59
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 sahal/868a40289f6247080c374729942e0ae5 to your computer and use it in GitHub Desktop.
Save sahal/868a40289f6247080c374729942e0ae5 to your computer and use it in GitHub Desktop.
Github suggestion when you rename a branch
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