Skip to content

Instantly share code, notes, and snippets.

@AlainBartmanDilaw
Created May 10, 2023 07:38
Show Gist options
  • Save AlainBartmanDilaw/4477ae415c291d7344f5b5c92a190805 to your computer and use it in GitHub Desktop.
Save AlainBartmanDilaw/4477ae415c291d7344f5b5c92a190805 to your computer and use it in GitHub Desktop.
Rename master to main operations
git branch -m master main
git fetch origin
git branch -u origin/main main
git remote set-head origin -a
@AlainBartmanDilaw
Copy link
Author

commands to run on local repositories after renaming the "master" branch to "main" branch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment