forked from EDCD/EDMarketConnector
-
Notifications
You must be signed in to change notification settings - Fork 0
Git Using Main Branch
David Sangrey edited this page Jun 3, 2024
·
2 revisions
This project uses 'main', instead of 'master', for its primary branch.
If you had previously cloned with 'master' as the primary then you should follow these steps to migrate:
git checkout master
git branch -m master main
git fetch
git branch --unset-upstream
git branch -u origin/main
git symbolic-ref refs/remotes/origin/HEAD refs/remotes/origin/main
These steps are:
- Go to the master branch
- Rename master to main locally
- Get the latest commits from the server
- Remove the link to origin/master
- Add a link to origin/main
- Update the default branch to be origin/main
See Contributing.md for an outline of the other branches we use.
We followed the instructions at https://www.hanselman.com/blog/EasilyRenameYourGitDefaultBranchFromMasterToMain.aspx , which boil down to:
git checkout master
git fetch origin
git branch -m master main
git push -u origin main
- Acknowledgements & License
- [Automatic Builds](Automatic Builds)
- Code-Signing-and-EDMC
- Git-Using-Main-Branch
- Home
- Installation-&-Setup
- Killswitches
- Licenses
- New-user-guide
- Participating-in-Open-Betas-of-EDMC
- Plugins
- Privacy-Policy
- Releasing
- Running-from-source
- Translations
- Translations2
- Troubleshooting
- Unsupported-OSes
- Windows-Manifest