From: Shawn Pearce Date: Mon, 18 Sep 2006 18:32:20 GMT Subject: Re: Can the git exclude files mask out whole directories? Message-ID: <20060918183220.GA31371@spearce.org> In-Reply-To: <1158604087.28026.160.camel@okra.transitives.com> Alex Bennee wrote: > I may be being a bit dim but according to the man page I should be able > to specify paths with /'s in them. I want to exclude all CVS directories > so I can commit stuff. I have tried: > > # > # Ignore CVS files > # > */CVS/* Just use CVS in your info/exclude file: # # Ignore CVS files # CVS > to my exclude file but that seems suboptimal. Besides I'll also want to > be ignoring whole build directories later. Have I subtly misunderstood > the man page? I ignore my build directories all the time by just putting their names in .gitignore, with no trailing /. -- Shawn.