Is there a git find analogue of git grep, i.e., something that will find a filename by pattern in the tree? I’ve gone through a lot of git documentation and not found this, but I’m having a hard time believing it doesn’t exist somewhere.
Is there a git find analogue of git grep , i.e., something that will
Share
You can list all files in a tree object using
git ls-tree -r --name-only --full-tree <treeish>. Pipe this through a regular grep to find what you’re looking for.