Alps over Grindelwald

Master to Main with GitLab

New industry standard and #blm

Why

How

Update CI and docs (.gitlab-ci.yml && README.md)

Update default branch

git branch -m master main
git push -u origin main

Set default branch in GitLab

Update protected branches

Delete origin/master

And then?

git checkout master
git branch -m master main
git fetch
git branch --unset-upstream
git branch -u origin/main
git symbolic-ref refs/remotes/origin/HEAD refs/remotes/origin/main

Default branch name for new repos

Bonus: Do you have any separate tools that look at master branches of repositories?

Conclusion