gitignore + check file exists