を使用してプロジェクトにレポ (牛と呼ばれる) を追加しようとしていgit subtree addます。stable特に、ブランチ(ブランチではない)を追加したいと思いmasterます。私は試した:
git subtree add -P cow https://github.com/geoffryan/cow.git stable
しかし、これはエラーを返しました
'stable' does not refer to a commit.
私も試しました:
git subtree add -P cow https://github.com/geoffryan/cow.git cow/stable
'cow/stable' does not refer to a commit.
と:
git subtree add -P cow https://github.com/geoffryan/cow.git ca26d248a12c21264e32a2c212381cafb578c9fb
'ca26d248a12c21264e32a2c212381cafb578c9fb' does not refer to a commit.
ハッシュは、stableブランチの最新のコミットのものでした。私がオンラインで見た使用例はすべてmasterコミットに使用されていますsubtree addが、マスター以外のブランチで使用することは可能ですか?