git check-ignore

This command lets you debug if a certain file/path is ignored and, with the -v flag, it also shows you the matching exclude pattern (Docs).
Federico

Get our stories delivered

From us to your inbox weekly.