Darkmage Darkmage - 1 year ago 192
Git Question

How do I .ignore files with Git GUI?

I have created a .gitignore file in the folder with the .git folder,
but I still get the files I'm trying to ignore when doing a rescan of the repository.

This is the content of the file.

# Ignored files

What am I doing wrong? where is the file suppose to be located?

Answer Source

You need to make sure the file you are still seeing are not currently committed or staged.

If you remove them (git rm or git rm --cached), and then add them as private file, then they will be ignored.

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