Kohan95 Kohan95 - 1 year ago 108
Git Question

How to ignore certain files in git?

I have a repository with a file

. When I compile it an additional
file is generated.

I created an entry for
in a
file. However the file still appears to be tracked.

I want to know how to make git ignore

Answer Source

The problem is that .gitignore ignores just files that weren't tracked before (by git add). Run git rm --cached name_of_file and your file will be ignored again (in case it's mentioned in .gitignore).

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download