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

Rename from master to main #272

Closed
2 tasks done
consideRatio opened this issue Jun 19, 2023 · 1 comment
Closed
2 tasks done

Rename from master to main #272

consideRatio opened this issue Jun 19, 2023 · 1 comment

Comments

@consideRatio
Copy link
Member

consideRatio commented Jun 19, 2023

The master branch can be easily renamed, and many (all?) references are redirected by GitHub from the old name to the new when renaming a branch. For example, if someone installs this repo from the master branch via https://github.com/jupyterhub/batchspawner/archive/master.zip, it will still work after the rename.

For your local git repositories, you can do these steps are provided by github's web-based hint following the rename.

# rename your local master to main
git branch -m master main

# get the latest stuff from this repo
git fetch origin

# let the main branch track origin/main
git branch -u origin/main main

# I can't explain this...
git remote set-head origin -a
@consideRatio
Copy link
Member Author

I went for the rename, I hope this was considered okay please let me know if you think I moved to fast!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant