Skip to content
loading...

.gitignore is not working

twitter logo ・1 min read  

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"
twitter logo DISCUSS
Classic DEV Post from Feb 22

How do you avoid rabbit holes?

It's nice to go deep on a problem sometimes, but we can be tempted to go too deep. How do you manage...

Onur Bilgin profile image

A blogging community of over 100,000 software developers Join dev.to