title: How to get the last commit ID of a remote repo using curl-like command?
body: <p>I want to get the last commit ID of the <strong>remote</strong> git repo.</p>
  
  <p>The command <code>git rev-parse HEAD</code> works for a locally-cloned git repo, but I want to get it from the original GIT repo by a CURL command or so. </p>
  
  <p>Eg: I want to get the last commit ID of the git URL <a href="https://git.appfactorypreview.wso2.com/history/apiapp.git/">https://git.appfactorypreview.wso2.com/history/apiapp.git/</a>.</p>
  
  <p>How?</p>