How to get the path of the current directory relative to root of the git repository?
<p>I've seen <a href="https://stackoverflow.com/questions/16951267/git-get-absolute-path-of-file-relative-to-repo">this question</a>, which tells how to get the path of a particular file relative to the root of the git repo.  But I now want to get the path of the current directory, not a specific file.  If I use </p>

<pre><code>git ls-tree --full-name --name-only HEAD .
</code></pre>

<p>I get the list of all the files in the directory.</p>

<p>Is this possible?</p>