reuixiy / hugo-theme-meme

😝 You can’t spell awesome without MemE!
https://io-oi.me/hugo-theme-meme
MIT License
1.01k stars 279 forks source link

Rename default branch to main #444

Open palant opened 11 months ago

palant commented 11 months ago

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 commented 11 months ago

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 commented 11 months ago

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!