From: pradeep singh rautela Date: Wed, 23 Jan 2008 13:54:44 GMT Subject: Why does git track directory listed in .gitignore/".git/info/exclude"? Message-ID: <6bc632150801230554l3b24e1e4lb4641bf7c16857c0@mail.gmail.com> Hi All, I have an source directory, which in turn has some other directories too. I do not want to track one of these directories. So i added the directory name in .gitignore as well as in .git/info/exclude for my repo. i.e i have added following line to both of them - xen-3.1.0-src/ I copied xen-3.1.0-src from archives in the git repo's base directory. Now when i do a git-status i get # On branch master # Untracked files: # (use "git add ..." to include in what will be committed) # # xen-3.1.0-src/ nothing added to commit but untracked files present (use "git add" to track) Why is git seeing xen-3.1.0-src directory at all? Is this the expected behaviour? I thought i should not get this message after adding relevant entries in .gitignore or in info/exclude . What am i doing wrong here? Is there a way that this can be done without having to witness this message everytime i do a git status? Please CC me as I am not subscribed to the list. Thanks, ~Pradeep -- -- pradeep singh rautela http://eagain.wordpress.com http://emptydomain.googlepages.com