1

I have a tag, that points on commit in branch.

This tag must be only in that branch.

Is it possible to make after commit hook, that will move tag's pointer to fresh commit, if this commit in specified branch?

4

1 回答 1

0

您可以移动标签:

git tag -a -f yourTag

但这意味着

git push origin :refs/tag/yourTag # delete it on the remote
                                  # if you already pushed it
git push origin master --tags
于 2012-12-05T07:41:12.003 回答