New repositories created by Copilot use `master` instead of `main`
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 64/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- git
調査の方向性
Start by reproducing the issue in the GitHub Copilot app and inspect the repository-creation flow that initializes the local Git repository. Trace how the initial branch name is selected, then verify with git branch --show-current that creation uses main or the applicable configured default branch.
索引モデルが issue の本文から書いたものです。
説明
Short summary
When the GitHub Copilot app creates a new repository from scratch, it initializes the repository with master as the default branch instead of main.
Affected version or release
Current GitHub Copilot desktop app as of 2026-09-18 (exact build not captured).
Installation context
GitHub Copilot desktop app on macOS, creating a new local repository through a Copilot session.
What happened?
I asked the GitHub Copilot app to create a new repository. The resulting repository used master as its initial/default branch.
GitHub-hosted repositories have defaulted to main since 2020 unless a user, organization, or enterprise explicitly configures another name. The app appears to be relying on a local git init fallback or otherwise hard-coding/allowing master, rather than using main or honoring the applicable configured default branch name.
Steps to reproduce
- Open the GitHub Copilot app.
- Start from an empty folder or ask Copilot to create a new repository.
- Allow Copilot to initialize the Git repository.
- Inspect the initial branch name with
git branch --show-current. - Observe that the branch is named
master.
Expected behavior
The initial branch should be named main, unless a different default branch name is explicitly configured for the user, organization, enterprise, or local Git environment. Ideally, repository creation should consistently honor the applicable configured default.
Additional context
GitHub's default-branch guidance states that new repositories created on GitHub use main: https://github.com/github/renaming#new-repositories-use-main-as-the-default-branch-name
Related but not duplicate reports:
- #511 describes the app assuming
masterwhen calculating changes. - #786 describes collection projects not respecting per-repository default branches.
- 主要言語
- 言語のデータがありません
- スター
- 2.1k
- フォーク
- 157
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
github/app のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
似ている issue
-
awaiting triage bug Causes friction Hop Gui P1 P2 Transforms
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
objective-see/LuLu#925 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
farion1231/cc-switch#7638 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
PolyMeilex/rfd#334 ·