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 default branch to main #6

Closed
agradouski opened this issue Sep 22, 2021 · 1 comment
Closed

Rename default branch to main #6

agradouski opened this issue Sep 22, 2021 · 1 comment

Comments

@agradouski
Copy link
Contributor

agradouski commented Sep 22, 2021

Following other repos example, shall we rename default branch to main?

cluster-api just made this change, and some provider repos following example (cluster-api-provider-packet most recently).

Instructions: https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-branches-in-your-repository/renaming-a-branch

@agradouski agradouski changed the title Rename default branch to main Make main the default branch Sep 22, 2021
@agradouski agradouski changed the title Make main the default branch Rename default branch to main Sep 29, 2021
@agradouski
Copy link
Contributor Author

this has been completed. please see "CAPI kubemark provider default branch rename" thread in kubernetes-sig-cluster-lifecycle@googlegroups.com

as per email, please run these commands on your remote:

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

also, consider updating your fork’s default remote branch name such that if you have git auto-completion enabled, typing ma will autocomplete to main.

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