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 default branch from master to main #183

Closed
jessemapel opened this issue Oct 31, 2022 · 1 comment
Closed

Change default branch from master to main #183

jessemapel opened this issue Oct 31, 2022 · 1 comment
Assignees

Comments

@jessemapel
Copy link
Contributor

Git has moved away from the master/slave branch naming because it's culturally insensitive. Instead, new git repos now use main as the default branch. This repo still uses the old master primary branch and we should update it to use the new default branch name.

This would be a minor disruption to work.

Open pull requests will need to be changed to pull into main instead. This should not impact contributors; it will be a one time action for maintainers.

Contributors will need to pull and create branches from main instead of master. For example, to create a new branch for work, you will run git fetch upstream && git checkout -b my_work_branch upstream/main instead of git fetch upstream && git checkout -b my_work_branch upstream/master. To ensure contributors don't accidentally create branches or pull from the now out-of-date master branch, we should delete it. This will result in the old commands erroring instead of silently continuing but not actually pulling the most recent changes.

@jessemapel
Copy link
Contributor Author

I would like to coordinate this work across our public GitHub repos so that everyone can make the same change all at once instead of staggering it and confusing people. See:

DOI-USGS/ale#505

DOI-USGS/knoten#106

DOI-USGS/swigcsm#35

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

2 participants