Relative Content

Tag Archive for gitrustgitignore

git: untracked files not being ignored

So, i’m doing a little project with rust and i would also like to use git in order to learn both in a more practical way. The problem started when i created gitignore, because in rust, both the “target/” folder and “Cargo.Lock” need to be ignored, but when i added those files to gitignore, it was still showing those files as untracked files in the status and they could still be added and commited which is not what its supposed to happen, heres some screenshots: