From: pradeep singh rautela Date: Wed, 23 Jan 2008 14:04:19 GMT Subject: Re: Why does git track directory listed in .gitignore/".git/info/exclude"? Message-ID: <6bc632150801230604p2589c893pa05bb6f27e482de8@mail.gmail.com> In-Reply-To: <6bc632150801230554l3b24e1e4lb4641bf7c16857c0@mail.gmail.com> Apologies to all.Kindly pardon my novice experiments with git. Some more trial and error method led to find that you have to put a * at the end of the directory too. i.e xen-3.1.0-src/* But i still would like to ask git gurus here. Isn't it fine to include a directory name as $directory_name/ instead of $directory_name/* ? Thoughts? Thanks, --Pradeep On 23/01/2008, pradeep singh rautela wrote: > 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 > -- -- pradeep singh rautela http://eagain.wordpress.com http://emptydomain.googlepages.com