<p>Just say I have a file: "HelloWorld.pm" in multiple subdirectories within a Git repository.</p>

<p>I would like to issue a command to find the full paths of all the files matching "HelloWorld.pm":</p>

<p>For example:</p>

<pre><code>/path/to/repository/HelloWorld.pm
/path/to/repository/but/much/deeper/down/HelloWorld.pm
/path/to/repository/please/dont/make/me/search/through/the/lot/HelloWorld.pm
</code></pre>

<p>How can I use Git to efficiently find all the full paths that match a given filename?</p>

<p>I realise I can do this with the Linux/Unix find command but I was hoping to avoid scanning all subdirectories looking for instances of the filename.</p>

Try:
```
```
git ls-tree -r HEAD | grep HelloWorld.pm
```
```