From https://eric.blog/2014/05/11/remove-files-from-git-addingupdating-gitignore/
# First modify .gitignore to add files to ignore # then run the following command git rm -r --cached . git add -A git commit -am 'Removing ignored files'