Git Ignore ... and Untrack!

We’ve all done it. You commit a file you shouldn’t have. A .env , a node_modules/ you forgot to ignore, some local config, a stray build folder. So you add it to .gitignore … and git keeps tracking it anyway. That’s because .gitignore only governs untracked files. Once git is already tracking something, ignoring it does nothing. 🤦‍♂️ The actual fix is two steps: git rm --cached path/to/file echo…