Keep Junk Out of Your Repo
69%
Already Tracked? Here's the Fix
There's one catch: .gitignore only works on untracked files. If you've already committed a file and then add it to .gitignore, Git will continue tracking it.
To stop tracking a file that was already committed, you need to remove it from Git's index (but keep it on your disk):
git rm --cached
Learn Git in a Day
Everything you need, nothing you don'tEnroll now to unlock all content and receive all future updates for free.
Unlock now $9.99$7.49Learn More
Hurry! This limited time offer ends in:
To redeem this offer, copy the coupon code below and apply it at checkout:
