microsoft / dotnet

This repo is the official home of .NET on GitHub. It's a great starting point to find many .NET OSS projects from Microsoft and the community, including many that are part of the .NET Foundation.
https://devblogs.microsoft.com/dotnet/
MIT License
14.43k stars 2.21k forks source link

Default branch changed from `master` to `main` #1359

Open rbhanda opened 2 years ago

rbhanda commented 2 years ago

The default branch for this repo has changed from master to main.

Any new PRs should be against main.

To update your local branches, run the following commands:

create a new main branch based off of master

git checkout -b main master

push that new branch up and update it's tracking branch

git push -u origin main

remove old branch

git branch -d master Finally, to update your fork you can change the default branch to main at https://github.com//try/settings/branches and delete the old master branch via git push origin :master