.gitignore only ignores files that are not part of the repository yet. If you already git added some files, their changes will still be tracked. To remove those files from your repository (but not from your file system) use git rm --cached on them.

I used this to clear out a file, and then essentially they got removed but then readded during a the next commit. I chose the entire file

git rm — cached -r client

the -r was required to do so recursively (ie, remove files already on commit branch”



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store