Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Mention the issue when the branch names of the submodules and superproject differ

オープン
#2,060 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
55/100
issue の種類
ドキュメント
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
git
領域
documentation

調査の方向性

Find the Publishing Submodule Changes section and read its guidance for git push --recurse-submodules=on-demand. Verify the reported behavior when the superproject branch is main and the submodule branch is master; done means the section briefly explains this limitation and prevents the confusing failure described in the issue.

索引モデルが issue の本文から書いたものです。

説明

enhancement
General overview of your idea.

The Publishing Submodule Changes section describes how to use the git push --recurse-submodules=on-demand command, which should push the submodules changes first, then the main project changes.

However, as of Git v2.51.2, it will not work if the names of the superproject and submodules branches are different. The error is something like this:

fatal: src refspec 'refs/heads/main' must name a ref
fatal: process for submodule 'simple_git_project' failed

In this case, the superproject branch was called main, and the submodule branch was called master.

I don't know what Git maintainers think about it, but the problem is quite old (here's a mention on Stack Overflow).

It might be helpful to add a short note clarifying that in Pro Git.

What problem will this solve?

This will save the reader from two hours of confusion when a command fails for a not-so-obvious reason.

Have you thought about other solutions?

No response

Do you want to help with this enhancement idea?

Maybe

主要言語
CSS
スター
6.6k
フォーク
2.1k
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

progit/progit2 のほかの issue

progit/progit2 の issue をすべて見る

似ている issue

Documentation の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。