title: How to run Git commands on remote repository
body: <p>I am trying to code an simple PHP application which will retrieve some information from the remote Git repositories with terminal commands. I do not want to create a local working copy or repository. I only want to read information from remote repositories (browse tree, commit history, file diffs, download file), so it will be a read only connection.</p>
  
  <p>What I need to do is to run a series of simple commands like those in SVN: log, ls, diff, cat,..</p>
  
  <p>I have allready done that for SVN and it was easy. Usually commands were similar to this format:</p>
  
  <pre><code>svn --user myusername --pass mypassword --non-interactive command -r revisionNumber urlToRemoteRepository
  </code></pre>
  
  <p>My question is how to get similar information from Git repositories with terminal commands only?</p>