title: How do I execute a Git command without being in the repository?
body: <p>Is there a way to execute Git commands against a repository without being in that repository?</p>
  
  <p>For example something like this: <code>git /home/repo log</code>?</p>
  
  <p>Please do not tell me to <code>cd</code> to it. I'm doing this via an <code>exec</code> call.</p>