DEV Community

Onur Bilgin
Onur Bilgin

Posted on

1 1

.gitignore is not working

Even if you haven't tracked the files so far, git seems to be able to "know" about them even after you add them to .gitignore

NOTE : First commit your current changes, or you will lose them.

Then run the following commands from the top folder of your git repo:

git rm -r --cached .
git add .
git commit -m "fixed untracked files"

Top comments (0)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay