Can the git exclude files mask out whole directories?

From: Alex Bennee <>
Date: 2006-09-19 04:28:07

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

Amongst many variants and:

 git-ls-files --others --exclude-from=.git/info/exclude

And all my CVS directories still get listed. I can get what I want with

# Ignore CVS files

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?


Alex, homepage:
Majority, n.: That quality that distinguishes a crime from a law.

To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to
More majordomo info at
Received on Tue Sep 19 04:28:19 2006

This archive was generated by hypermail 2.1.8 : 2006-09-19 04:29:13 EST