I have just renamed librsvg's
master branch to
main, as other
modules already have.
This is what I did:
- Rename the local branch, and push it:
git branch -m master main git push origin main
Change the default branch in gitlab; for librsvg this is in the repository settings / Default branch - change that to
Set the same protection for the
mainbranch as there was for
master, if any - repository settings / Protected branches -> create a new protection and copy the settings from
masterbranch so I can delete it - repository settings / Protected branches -> unprotect the
masterbranch in the branches list.
Update the CI and build scripts: for librsvg it was just
Update your documentation: for librsvg it was just
Update 2021/Sep/30: Extra things which Philip Withnall suggested:
firstname.lastname@example.org they can update the damned-lies software. (Librsvg has no translations).
See if any project have a
librsvg.wrap(for Meson?) and notify them. I don't think I'm using search engines correctly...
masterbranch to prevent people accidentally pushing to it. Since that branch no longer exists, gitlab lets you create a protection by glob matching on a name, not an actual branch.
If you have a local checkout, you can do this:
# update from upstream git fetch origin # switch to your local master branch git checkout master # rename your local branch git branch -m master main # Remove the old upstream... git branch --unset-upstream # ... and set the new one git branch -u origin/main