Skip to main content

このバージョンの GitHub Enterprise サーバーはこの日付をもって終了となります: 2026-03-17. 重大なセキュリティの問題に対してであっても、パッチリリースは作成されません。 パフォーマンスの向上、セキュリティの向上、新機能の向上を図るために、最新バージョンの GitHub Enterprise サーバーにアップグレードしてください。 アップグレードに関するヘルプについては、GitHub Enterprise サポートにお問い合わせください

リポジトリのデフォルトブランチ名を管理する

GitHub で作成する新しいリポジトリに既定のブランチ名を設定できます。

About management of the default branch name

When you create a new repository on GitHub, the repository contains one branch, which is the default branch. You can change the name that GitHub uses for the default branch in new repositories you create. For more information about the default branch, see About branches.

You can change the default branch for an existing repository. For more information, see Changing the default branch.

Setting the default branch name

  1. In the upper-right corner of any page on GitHub, click your profile picture, then click Settings.
  2. In the "Code planning, and automation" section of the sidebar, click Repositories.
  3. In the text field, type the default name that you would like to use for new repositories.
  4. Click Update.

Further reading