pysal / libpysal

Core components of Python Spatial Analysis Library
http://pysal.org/libpysal
Other
258 stars 78 forks source link

rename `master` branch to `main` branch #353

Closed jGaboardi closed 1 year ago

jGaboardi commented 3 years ago

See also pysal/spopt#68

1. Renaming the organization remote master branch.

  1. Create a renamed copy of the master branch.
    • $ git branch -m master main
  2. Push the renamed copy to the organization remote.
    • $ git push -u upstream main
  3. Update the default branch in Settings/Branches.
  4. Delete the organization remote master.
    • $ git push upstream --delete master

2. Renaming your remote master branch.

  1. Create a renamed copy of the master branch.
    • $ git branch -m master main
  2. Push the renamed copy to your remote.
    • $ git push -u origin main
  3. Update the default branch in Settings/Branches.
  4. Delete your remote master.
    • $ git push origin --delete master
jGaboardi commented 3 years ago

@sjsrey I can get started on this if you like, though I will need admin permissions. Following the actual renaming we should...

martinfleis commented 3 years ago

This is becoming easier now https://github.blog/changelog/2021-01-19-support-for-renaming-an-existing-branch/

jGaboardi commented 3 years ago

@martinfleis nice find

jGaboardi commented 1 year ago

pysal/giddy#174, pysal/inequality#20, pysal/mapclassify#130, pysal/spreg#106

jGaboardi commented 1 year ago

Just tried out the "new" automated way in esda that @martinfleis pointed out earlier. Super easy to simply rename the master branch to main, which automatically updates+redirects open PRs. @sjsrey if you give the green light/thumbs up for this I can go ahead and pull the trigger.

martinfleis commented 1 year ago

For the other packages that have not been transitioned to main yet, please use the automated way linked above.