git改分支名master改main

1
GitHub is working on replacing the term “master” on its service with a neutral term like “main” to avoid any unnecessary references to slavery

github觉得master有点slavery那味。

我们将本地仓库的master分支改名为**main

1
git branch -m master main

git改分支名master改main
http://hanqichuan.com/2023/06/08/git/git改分支名master改main/
作者
韩启川
发布于
2023年6月8日
许可协议