git exclude patterns for directory

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

 



(Please Cc on replies)

I just started using git (yes, newbie ;) and hit a problem that i cant
seem to solve.

Is there a way where I could specify a pattern in .git/info/exclude that
would make git ignore directories.

Suppose I had in each of my project's sub-directories a directory called
'IGNORE/', how do I make git ignore this directory (and all it's
contents)?

I tried putting in

IGNORE/*

but this only takes care of the directory in the root dir. Then I tried

*/IGNORE/*

which doesn't work for dirs at >1 depth. I did read gitignore man page
(and it looks impossible .. ):

So, is there any way I can do this without adding a gitignore file in
each of my sub-directories?

-jb
-- 
Tact is the art of making a point without making an enemy.
-
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]

  Powered by Linux