Can I use Git to search for matching filenames in a repository? - Stack Overflow
git ls-files
will give you a listing of all files in the repository. You can pass a pattern in to get files matching that pattern.
git ls-files '*/HelloWorld.pm'
If you would like to find a set of files and grep through their contents, you can do that with git grep
:
git grep some-string -- '*/HelloWorld.pm'
Read full article from Can I use Git to search for matching filenames in a repository? - Stack Overflow
No comments:
Post a Comment