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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Alex Bennee <kernel-hacker@xxxxxxxxxx> 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.
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]