title: Is there a way to get the git root directory in one command?
body: <p>Mercurial has a way of printing the root directory (that contains .hg) via</p>
  
  <pre><code>hg root
  </code></pre>
  
  <p>Is there something equivalent in git to get the directory that contains the .git directory?</p>