title: How to get latest commit hash from remote?
body: <p>I wish to retrieve the latest commit hash on the remote repository, regardless of branch.</p>
  
  <p>I've tried <code>git ls-remote &lt;remote&gt;</code> and <code>git ls-remote --tags &lt;remote&gt;</code> but both of these seemingly sort by tag name, which does not make it possible to find out which is the latest.</p>
  
  <p>For example on Github, you can go to Insights / Network and get a graph that includes all branches and commits in these -- however, working in that gui is obviously not ideal - but the data should be there somehow. </p>
  
  <p>Is there a way to get the latest commit hash from remote irregardless of branch?</p>