DOI-USGS / knoten

Python Geospatial Sensor Exploitation Library
Other
3 stars 21 forks source link

Change default branch from master to main #106

Closed jessemapel closed 1 year ago

jessemapel commented 1 year ago

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 commented 1 year ago

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:

https://github.com/USGS-Astrogeology/ale/issues/505

https://github.com/USGS-Astrogeology/plio/issues/183

https://github.com/USGS-Astrogeology/swigcsm/issues/35