Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename 'master' git branch to 'main' #453

Closed
julianhyde opened this issue Oct 29, 2021 · 1 comment
Closed

Rename 'master' git branch to 'main' #453

julianhyde opened this issue Oct 29, 2021 · 1 comment

Comments

@julianhyde
Copy link
Owner

Rename the 'master' branch to 'main' in GitHub. 'Main' is the default name for new GitHub repositories, and over time 'master' will start to become an anachronism.

I have converted several repositories already, and the process is straightforward. It takes a 5 steps, and few seconds, for each client.

Here is the discussion thread.

@julianhyde
Copy link
Owner Author

julianhyde commented Oct 29, 2021

Fixed in 36ab7b7.

To fix up a client, do the following:

git branch -m master main
git fetch origin
git branch -u origin/main main
git remote set-head origin -a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant