check for gitignore. Checks if a file specified in the path is ignored or not. Verbose shows the correpsonding -gitignore rule
git check-ignore -v [PATH]