.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”




Starting a tech bootcamp

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

The best free tools to setup your mac

Application Deployment Models in the Cloud

kube2iam : Secure Kubernetes Services On AWS

Task 2 Week 8 & 9 & 10

Keitaro Docker images for the new CKAN patch releases are now available

Even More Step-by-Step Math Tools in Wolfram|Alpha For Chemistry Course Prep

TypingDNA with WSO2 Identity Server

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
Jesse Chung

Jesse Chung

Starting a tech bootcamp

More from Medium


Teaching English in the Context of the World English