2016-03-31 28 views
1

特定のタグ(T)を持つコミットをブランチ(B)にプッシュしたいと思います。タグ付きのコミットをgitのリモートブランチにプッシュするには?

私は、次のコマンドを使用しています:

git push origin refs/tags/T:refs/heads/B 

コマンドは

! [remote rejected] T -> B (failed to write) error: failed to push some refs to 'origin'

NOTEで失敗:遠隔起源に支店Bがありません。

注2:git push origin T:Bを使用すると、リモコンにタグBが作成されます。

注3: `git push origin 45feef5:Bを使うと動作します。しかし、コミットハッシュの代わりにタグ名を使用したいと思います。

答えて

0

私はそれが可能であるかどうかはわかりません。 Git docsさんのコメント:

By default, the git push command doesn’t transfer tags to remote servers. You will have to explicitly push tags to a shared server after you have created them.

関連する問題