From: Brian Gernhardt Date: Fri, 29 Dec 2006 15:51:37 GMT Subject: git-add ignores .gitignore Message-ID: <033682AF-B324-4049-B331-8A8AF2335E4D@silverinsanity.com> I just ran "git add ." and got a very surprising result. Test case: $ mkdir tmp $ git init-db $ mkdir a $ touch a/b c $ cat > .gitignore << EOF a EOF $ git status # On branch refs/heads/master # # Initial commit # # Untracked files: # (use "git add file1 file2" to include for commit) # # .gitignore # c nothing to commit (use "git add file1 file2" to include for commit) $ git add . $ git status # On branch refs/heads/master # # Initial commit # # Added but not yet committed: # (will commit) # # new file: .gitignore # new file: a/b # new file: c # $ git --version git version 1.5.0.rc0.g04509 Huh? I'm deep into my own code so can't diagnose it myself right now, but thought maybe someone on list could. I really hope that's not the expected behavior. Same thing happens with "git add *" ~~ Brian