When you are trying to get some information, you can use ls-remote .
In your scenario, you would run the command:
git ls-remote <remote> refs/tags/v1.0.0
This will output something along the lines of:
e8b29c3c46a59dc59e2a3b22c253860c23a9ea39 refs/tags/v1.0.0
which you should be able to cripple into something useful :)
<remote> is the remote you are requesting. A full example with another link to get the sha of the master branch would be:
git ls-remote ssh:// git@github.com /praqma-training/gitkatas refs/heads/master
with output:
634c33168ee434a10f74e3254c3f5f548f263250 refs/heads/master .
Good luck
source share