# You can remove them from the repository manually: git rm --cached file1 file2 dir/file3 # Or, if you have a lot of files: git rm --cached `git ls-files -i -c --exclude-from=.gitignore`
# You can remove them from the repository manually: git rm --cached file1 file2 dir/file3 # Or, if you have a lot of files: git rm --cached `git ls-files -i -c --exclude-from=.gitignore`