git rm Table of Contents git rm Untrack gitignored files already added git rm reference $ git rm -r --cached <file> # | +-- <file> is removed from just the index # +-- recursive http://stackoverflow.com/questions/6964297/untrack-files-from-git Untrack gitignored files already added howto Just remove all and add all again: git rm -r --cached . git add . http://www.codeblocq.com/2016/01/Untrack-files-already-added-to-git-repository-based-on-gitignore/