This is how my .gitignore file looks like:
/.env
/public/bundles/
/var/
/vendor/
/public/data/
/public/data/data.json
I added the data.json file later to the .gitignore file and now I have the problem that git does not accept the file as ignored. So whenever I make a change on the file, git is listing the file public/data/data.json in uncommited changes...
 
    