Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How to get remote git repo tag's commit message

I can have a remote repository’s hash by tag v0.94.9

git ls-remote https://github.com/status-im/status-go v0.94.9

How to get the commit message for this tag?
I do not want to clone that repository, just get its commit message for that tag v0.94.9

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

Provide a solution that GitHub only (using GitHub APIs):

#!/bin/bash
url=$(curl https://api.github.com/repos/status-im/status-go/git/ref/tags/v0.94.9 | jq -r .object.url)
curl "$url" | jq -r .message
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading