git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Can the git exclude files mask out whole directories?

From
Shawn Pearce <spearce@spearce.org>
Date
Sep 18, 2006, 18:32 UTC
Message-ID
<20060918183220.GA31371@spearce.org>
In-Reply-To
<1158604087.28026.160.camel@okra.transitives.com>
Alex Bennee <kernel-hacker@bennee.com> wrote:
Show 8 quoted lines
> 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.
Previous: Alex Bennee
Message 2 of 2 in “Can the git exclude files mask out whole directories?”
  1. Alex BenneeSep 18, 2006
  2. Shawn PearceSep 18, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.