How to get the last commit ID of a remote repo using curl-like command? January 15, 2023 by Tarik try this command git log --format="%H" -n 1