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 branches from 'master' -> 'main' #33

Open
bs opened this issue Sep 29, 2020 · 3 comments
Open

Rename branches from 'master' -> 'main' #33

bs opened this issue Sep 29, 2020 · 3 comments

Comments

@bs
Copy link
Member

bs commented Sep 29, 2020

I've set the default for new repositories to be 'main' rather than 'master.'

Screen Shot 2020-09-29 at 3 36 52 PM

This will become the default for Github in a few days.

Please take a moment to opportunistically rename 'master' on existing repos.

It's as simple as:

  1. Rename the branch
❯ git branch -m master main
❯ git push -u origin main
❯ git remote set-head origin main
  1. You can verify that the branches are identical via:
git diff remotes/origin/master..main
  1. Set 'main' to be the default in the settings of the repo on Github:

Screen Shot 2020-09-29 at 4 04 43 PM

  1. And then delete the 'master' branch:
git push origin --delete master

Here's a good write-up on the process, and if you're interested in the history of how it got named 'master' in the first place, some good reading here.

@bs
Copy link
Member Author

bs commented Sep 29, 2020

I've done this on:

  • project
  • library
  • internal

@radekosmulski
Copy link
Contributor

Interesting read on the history behind the name @bs!

I've made the change for the following repos where I am the main contributor, this should capture everything is 'public facing' or that isn't 'stale'.

  • embedding-gym
  • audio-embeddings
  • from_zero_to_DSP
  • dl-annotator
  • spectral-hyperresolution
  • sperm_whale_bioacoustics
  • dolphin

@bs
Copy link
Member Author

bs commented Oct 7, 2020

I think we got all the major ones. Thank you, @radekosmulski! @pcbermant, I think we've just got yours left and then can close.

@bs bs added this to To do in Github Shakedown via automation Oct 7, 2020
@bs bs added this to the GitHub Shakedown milestone Oct 18, 2020
@bs bs added the in progress label Oct 18, 2020
@radekosmulski radekosmulski removed their assignment Aug 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

No branches or pull requests

4 participants