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

Change master branch to main. #427

Open
mvanaken opened this issue Apr 16, 2024 · 1 comment
Open

Change master branch to main. #427

mvanaken opened this issue Apr 16, 2024 · 1 comment

Comments

@mvanaken
Copy link
Contributor

We have been talking about it for so long. Let's do it!

This is mostly a settings change and itself does not require code-changes, but we do have links in our README that has the default branch name in the url.

@mvanaken
Copy link
Contributor Author

I followed these steps (https://www.git-tower.com/learn/git/faq/git-rename-master-to-main):

  • git pull
  • git checkout master
  • git branch -m master main
  • git push -u origin main
  • git symbolic-ref refs/remotes/origin/HEAD refs/remotes/origin/main
    And then changed the default branch in Settings > General to switch to main branch.

Everybody else can just do locally:

  • git pull
  • git checkout main
  • git branch -d master

The master branch still exists, but is marked read only to avoid accidental pushes to this branch.

I will now open a branch to make small url changes.

mvanaken added a commit that referenced this issue Apr 16, 2024
#427: Update urls in README to link to new default branch main instead of master.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant