Skip to content

Instantly share code, notes, and snippets.

@kujenga
Created July 18, 2022 22:09
Show Gist options
  • Save kujenga/88e75742e0949da653d7cd76a9d3237a to your computer and use it in GitHub Desktop.
Save kujenga/88e75742e0949da653d7cd76a9d3237a to your computer and use it in GitHub Desktop.
Steps to fully rename the a branch from master to main, from GitHub instructions
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