Does anyone know how to get the latest SHA of a given branch FROM OUTSIDE a git repository?
If you are inside git repository, it’s you can do: git log origin/branch_X | head -1
However, I am not inside a git repository, and I would like to avoid having to “clone” a repository just to get the latest SHA of a tag/branch. Is there a clever way of doing this?
Thanks!
-Steve