Search code examples
gitgit-remotegit-taggit-rev-listls-remote

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


Is it possible to check if, a git tag/commit is reachable from another git tag/commit in a repo through remote git commands i.e without cloning the code.

I can do it locally using git rev-list or git merge-base. I tried using git ls-remote, but unable to do so.


Solution

  • In order to interact with a git repository you have to clone it.

    Use git clone <remote> to get the repository locally and after that you can use your commands you already used before to filter.