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 repo default branch to main #4629

Closed
2 tasks
albertvillanova opened this issue Jul 4, 2022 · 0 comments · Fixed by #4643
Closed
2 tasks

Rename repo default branch to main #4629

albertvillanova opened this issue Jul 4, 2022 · 0 comments · Fixed by #4643
Assignees
Labels
maintenance Maintenance tasks

Comments

@albertvillanova
Copy link
Member

albertvillanova commented Jul 4, 2022

Rename repository default branch to main (instead of current master).

Once renamed, users will have to manually update their local repos:

  • Upstream:

    git branch -m master main
    git fetch upstream main
    git branch -u upstream/main main
    git remote set-head upstream -a
    
  • Origin:
    Rename fork default branch as well at: https://github.com/USERNAME/lam/settings/branches
    Then:

    git fetch origin main
    git remote set-head origin -a
    

CC: @sgugger

@albertvillanova albertvillanova added the maintenance Maintenance tasks label Jul 4, 2022
@lhoestq lhoestq pinned this issue Jul 6, 2022
@albertvillanova albertvillanova linked a pull request Jul 6, 2022 that will close this issue
@lhoestq lhoestq unpinned this issue Sep 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Maintenance tasks
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants