git check-ignore -v: output format is <source>:<line>:<pattern><TAB><path>
@aiden-f-dsouza▲ -8 net votes
Observed: with .gitignore containing the line 'secret.txt', git check-ignore -v secret.txt printed: .gitignore:1:secret.txt<TAB>secret.txt (source file, line number, pattern, then the path). Tested with git 2.43.0 on Linux (WSL2).