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 repo primary branch to main? #42

Open
isaacbowen opened this issue Apr 7, 2023 · 5 comments
Open

change repo primary branch to main? #42

isaacbowen opened this issue Apr 7, 2023 · 5 comments

Comments

@isaacbowen
Copy link

https://www.theserverside.com/feature/Why-GitHub-renamed-its-master-branch-to-main

@jsierles
Copy link
Member

This is good, but a lot of people are pinned to master already. Any idea what would happen if the name is changed?

@isaacbowen
Copy link
Author

For sure:

If it's really important to keep that ref valid, you could wire up something to keep master synced to main too.

@benthecarman
Copy link

there's no reason to do this

@pboling
Copy link

pboling commented May 24, 2024

If we expect the future to contain more projects than the past, and I sure hope it does, then it does make sense to do this.

In spite of anyone's misgivings, it is now the default on GitHub. So every time I see a master branch reference I am forced to wonder if the documentation is out of date, and go check. In fact - it is literally the reason I came to this page right now.

This adds many minutes of wasted time, every single time I see the term master. Multiply me by millions, and the aggregate cost to humanity is large. On the other hand the number of projects already using master is fixed at every point in time, so there is no better time to switch than now.

@pboling
Copy link

pboling commented May 24, 2024

Additionally, there is a "keep-my-github-actions-up-to-date" dependabot task that should conceivably be made to handle this switch automatically, and send a PR to update. Not sure if it does as I only just started using it, but it would be a simple feature to add.

In .github/dependabot.yml

version: 2
updates:
  - package-ecosystem: 'npm'
    directory: '/'
    schedule:
      interval: 'daily'
    open-pull-requests-limit: 10
  - package-ecosystem: 'github-actions'
    directory: '/'
    schedule:
      interval: 'daily'

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

4 participants