About the default branch name
在 GitHub 上创建新存储库时,该存储库将包含一个分支,它就是默认分支。 你可以更改 GitHub 为创建的新存储库中的默认分支使用的名称。 有关默认分支的详细信息,请参阅“关于分支”。
您可以更改现有仓库的默认分支。 有关详细信息,请参阅“更改默认分支”。
设置默认分支名称
- 在 GitHub 任意页面的右上角,单击你的个人资料照片,然后单击“ Settings”****。
- 在边栏的“Code, planning, and automation”部分中,单击 “Repositories”****。
- 在文本字段中,键入要用于新存储库的默认名称。
- 单击“更新” 。
其他阅读材料
-
[AUTOTITLE](/organizations/managing-organization-settings/managing-the-default-branch-name-for-repositories-in-your-organization)