Learn How to Stop Tracking Files After Adding It to .gitignore in 4 Steps
Too Long; Didn't Read
When we track a file in git, it can sometimes get cached and remain tracked, even if we add it to our .gitignore file. Fortunately, there is an easy way to fix this. git has a built-in rm function which lets us remove cached or tracked changes.