lets create a new git repo $ mkdir testRepo $ cd testRepo $ mkdir dirWithOnlyIgnoredFiles $ touch dirWithOnlyIgnoredFiles/foo.log $ touch test.txt $ touch main.log $ git init
now lets ignore the log files $ echo '*.log' > .gitignore stage all non-ignored files and creat a commit $ git add . $ git commit -m 'foo' now lets list the ignore files $ git status --ignored # On branch master # Ignored files: # (use "git add -f <file>..." to include in what will be committed) # # main.log nothing to commit (working directory clean) Note the the log file in the 'dirWithOnlyIgnoredFiles' is *not* listed, although I would presume that it is indeed an ignored file. What happened here? Note that after adding a file into the folder that is tracked, then the log suddenly does show up $ touch dirWithOnlyIgnoredFiles/test.txt $ git add . $ git commit -m 'add a file' $ git status --ignored # On branch master # Ignored files: # (use "git add -f <file>..." to include in what will be committed) # # dirWithOnlyIgnoredFiles/foo.log # main.log nothing to commit (working directory clean) with kind regards, jeroen -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To unsubscribe from this group and stop receiving emails from it, send an email to git-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.