Gitignore has no effect on files that are already in the repo so they need to be removed with git rm --cachedThe --cached will prevent it from having any effect on your working copy and it will just mark as removed the next time you commit. Theres no comparison to this movie on how these simple poetic devices can improve your writing. Pin On Writing Blogging Tips After the files are removed from the repo then the. . It seems like you want the files ignored but they have already been commited.