.gitignore is now working by calling git rm -r --cached . followed by git add .