title: How to check if the revision(commit) exists in a remote Git repository
body: <p>I'm working on application that deploys other applications from git repo to server and there is an option where user can choose which revision to deploy. </p>
  
  <p>My problem is to validate revision exists in given repo <strong>without downloading it</strong>.</p>
  
  <p>In <a href="https://stackoverflow.com/questions/18515488/how-to-check-if-the-commit-exists-in-a-git-repository-by-its-sha-1">similar question</a> they recomend to use <code>test $(git cat-file -t $sha) == commit</code> but it needs local repo.</p>
  
  <p>Is it possible to check revision exists on remote repo by its URL?</p>