unic / estatico-nou

Static site generator for frontend engineers
https://unic.com
13 stars 6 forks source link

Rename "master" branch to "main" #98

Closed DaniRey closed 3 years ago

DaniRey commented 4 years ago

Let's get rid of all master-slave terminology #BlackLivesMatter

More details on how and why we want this change https://www.hanselman.com/blog/EasilyRenameYourGitDefaultBranchFromMasterToMain.aspx

Updating local clones

If someone has a local clone, then can update their locals like this:

$ 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

Changing target branch for open PRs according to https://stackoverflow.com/a/24159161/3768943