如何知道标签是本地还是远程?

时间:2014-09-19 20:14:57

标签: git tags

1.我的项目中有很多标签,我怎样才能轻松清楚地知道标签是本地的还是远程的?(ls-remote很有用但很难区分)

2.我运行git ls-remote --tags origin打印

abcde  refs/tags/aaaa
abcee  refs/tags/aaaa^{}  

第二行是什么意思?

THX

1 个答案:

答案 0 :(得分:1)

  1. 如何选择列出标签应该清楚它们的位置。
  2. git ls-remote --tags origin显然列出了原始的远程标签。

    git tag在本地列出标签。

    1. 请参阅 What does ^{} mean in git? When listing git-ls-remote why there's "^{}" after the tag name?