Created
June 15, 2020 08:55
-
-
Save swestcott/bec3a6870891430f6ef7cfcdde0ebcc6 to your computer and use it in GitHub Desktop.
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 fetch origin master | |
git checkout -b main origin/master --no-track | |
git push origin main | |
git remote set-head origin main | |
gh api -XPATCH "repos/:owner/:repo" -f default_branch="main" | |
git push --delete origin master | |
git branch -d master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment