Last active
August 2, 2023 21:32
-
-
Save Haaroon/a81956fc1d40f3f9df5a4203f05f3494 to your computer and use it in GitHub Desktop.
Rename branch from main to master
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git branch -m main master | |
git push -u origin master | |
git remote set-head origin master | |
# Now go to github in a browser, | |
# open the repo, click settings, branch and change the default branch to master | |
git push origin --delete main |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment