Which line ignores a file?
You have a file foo/bar.baz that is being ignored by a line in a .gitignore.
But you are unsure which line is responsible for ignoring this file.
You can use git check-ignore -v:
❯ git check-ignore -v foo/bar.baz
.gitignore:23:foo/*.baz foo/bar.baz