是否可以检查 git 标签是否可以使用远程命令从同一仓库中的另一个 git 标签访问?

Is it possible to check, if a git tag is reachable from another git tag in same repo using remote commands?

是否可以检查 git tag/commit 是否可以通过远程 git 命令从仓库中的另一个 git tag/commit 访问,即没有克隆代码。

我可以使用 git rev-list 或 git merge-base 在本地完成。 我尝试使用 git ls-remote,但无法这样做。

为了与 git 存储库交互,您必须克隆它。

使用 git clone <remote> 在本地获取存储库,然后您可以使用之前已经使用过的命令进行过滤。