Renaming master branch to main branch #3513
dlebauer
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
GitHub release branch renamed from master to main.
This was enabled by #3375 (thanks @robkooper!) and @infotroph.
If you see anything weird happen because of it, please reach out on Slack.
Updating your local repository
Option 0: Easy way - destroy and re-clone
Options 1&2 use git to remove master and add main
If you keep a local origin-tracking master branch in your local repo, you can follow GitHub’s standard advice to rename it.
First check which remote repositories your local branch points to
If result includes
origin [email protected]:pecanproject/pecan.git
--> option 1origin [email protected]:<gh-username>/pecan.git
upstream [email protected]:pecanproject/pecan.git
--> option 2git remote add upstream [email protected]:PecanProject/pecan.git
and then option 2Option 1: if your local pecan has github.com:pecanproject/pecan as the origin
Option 2: if your local pecan is from a fork (e.g. github.com:/pecan)
Beta Was this translation helpful? Give feedback.
All reactions