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

Update default branch from 'master' to 'main' #2972

Closed
davelab6 opened this issue Jan 22, 2021 · 4 comments
Closed

Update default branch from 'master' to 'main' #2972

davelab6 opened this issue Jan 22, 2021 · 4 comments
Assignees

Comments

@davelab6
Copy link
Member

Following googlefonts/gftools#302 I want to move this repo's default branch from 'master' to 'main'.

Since there are both upstream and downstream dependencies, I'm filing this issue to coordinate the change.

@davelab6
Copy link
Member Author

davelab6 commented Jan 23, 2021

Looks like when one changes the branch to main, Github auto-closes all open PRs :( Currently there are 93 open.

@davelab6
Copy link
Member Author

This is now done, and the needed downstream changes are made.

@davelab6
Copy link
Member Author

Looks like when one changes the branch to main, Github auto-closes all open PRs :( Currently there are 93 open.

Turns out github has a 'edit default' feature in the repo settings > branches page, which repoints open PRs automatically :)

@davelab6 davelab6 self-assigned this Feb 27, 2021
@davelab6 davelab6 added this to the Github Repo Management milestone Feb 27, 2021
@davelab6
Copy link
Member Author

davelab6 commented Mar 5, 2021

To update local clones, do this:

git fetch origin
git checkout main

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

1 participant