Closed justmoon closed 4 years ago
Changed the default branch name from master to main.
See: https://www.hanselman.com/blog/EasilyRenameYourGitDefaultBranchFromMasterToMain.aspx
@ljharb - Please update your local working copy:
$ 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
It would probably have been better to wait for github's proper support for this, so that URLs with "master" redirect properly, but noted.
Changed the default branch name from master to main.
See: https://www.hanselman.com/blog/EasilyRenameYourGitDefaultBranchFromMasterToMain.aspx
@ljharb - Please update your local working copy: