How to see remote tags?

后端 未结 2 1674
北恋
北恋 2020-12-22 18:47

In Atlassian SourceTree, how to know which tags are only local and which are also in remote?

When creating a tag you get the option \"Push tag to: ...\", but how to

2条回答
  •  一向
    一向 (楼主)
    2020-12-22 19:21

    You can list the tags on remote repository with ls-remote, and then check if it's there. Supposing the remote reference name is origin in the following.

    git ls-remote --tags origin
    

    And you can list tags local with tag.

    git tag
    

    You can compare the results manually or in script.

提交回复
热议问题