git status --ignored
# Tells you which files are present and will be ignored git status --ignored # This one tells you which line in the .gitignore file makes it so git check-ignore -v * git check-ignore -v ./relative/path/to/your/file