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

Open
palant opened this issue Oct 7, 2023 · 2 comments
Open

Rename default branch to main #444

palant opened this issue Oct 7, 2023 · 2 comments
Assignees
Labels
ATTENTION Something you should pay attention to

Comments

@palant
Copy link
Collaborator

palant commented Oct 7, 2023

New git projects (created after 2020) automatically get main as default branch name. Projects like this one which were created prior to this change still use master as their default branch. It should be changed manually, with the new name being both more descriptive and more inclusive.

Renaming the branch is pretty straightforward on GitHub. I requires admin privileges however, for the default branch mere write access isn’t sufficient.

@reuixiy
Copy link
Owner

reuixiy commented Oct 8, 2023

Reasonable renaming.

Personal accounts have no permission level between owner and collaborator^1. I’ll do it manually.

^1: https://docs.github.com/en/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-user-account-settings/permission-levels-for-a-personal-account-repository

@reuixiy reuixiy self-assigned this Oct 8, 2023
@reuixiy reuixiy pinned this issue Oct 8, 2023
@reuixiy reuixiy added the ATTENTION Something you should pay attention to label Oct 8, 2023
@reuixiy
Copy link
Owner

reuixiy commented Oct 8, 2023

To anyone who will encounter the following error

fatal: couldn't find remote ref refs/heads/master

when trying to update MemE after this default branch renaming.

  1. Go to themes/meme then run git branch -m master main
  2. Edit themes/meme/.git/config and replace every master with main
  3. Try to update MemE again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ATTENTION Something you should pay attention to
Projects
None yet
Development

No branches or pull requests

2 participants