Sean Sean - 1 year ago 79
Git Question

gitignore won't ignore my .settings/ directory (created by eclipse)

git status:

Untracked files:
(use "git add <file>..." to include in what will be committed)

I've tried the following variations on my .gitignore file and nothing seems to work:





I've never had this much trouble with
, it usually just works. I must be doing something real dumb.

file has more in it than just that one line (all the other lines works correctly).

Answer Source

My .gitignore file has a leading forward slash before .settings:


where you don't have that slash. Try adding the slash

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