title: Getting the last commit hash from a remote repo without cloning
body: <p>I want to get the hash of last commit that has happened in a remote repo without cloning it. Is there a way to do this ? I found several methods but for all of them to work, I need to clone the repo first and then issue the commands to get the last commit hash.</p>
  
  <p>Is there a way I can get the last commit hash from a remote git without cloning it ?</p>
  
  <p>Note: </p>