If you change directory to company_logos in the local repo before running the git-ls-files
command, you will get the relative path to ignored files in that directory without needing to pipe to select-string
. If you need the full path add --full-name
https://git-scm.com/docs/git-ls-files.