此问题已在此处有答案:
check if pushed tag is on the git remote(4个答案)
3天前关闭。
我在GitLab上有一个repo,现在我需要检查特定repo上是否存在标记。我需要用Python来检查一下。
在GitLab API中,我没有看到任何方法来检查这个。
如果喜欢使用GitLab API但如果不可能,我想知道是否可以直接使用一些Git命令来完成。
此问题已在此处有答案:
check if pushed tag is on the git remote(4个答案)
3天前关闭。
我在GitLab上有一个repo,现在我需要检查特定repo上是否存在标记。我需要用Python来检查一下。
在GitLab API中,我没有看到任何方法来检查这个。
如果喜欢使用GitLab API但如果不可能,我想知道是否可以直接使用一些Git命令来完成。
1条答案
按热度按时间o2rvlv0m1#
可以使用“subprocess”库和shell命令。就像这样: