Solution to .gitignore file not ignoring