{"thread":{"id":"8655","subject":"git exclude patterns for directory","startedAt":"2007-06-19T20:08:21Z","lastAt":"2007-06-19T20:34:49Z","messageCount":2,"participants":["jimmy bahuleyan","Alex Riesen"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"45376","messageId":"20070619200821.GA16423@camelot","threadId":"8655","inReplyTo":null,"subject":"git exclude patterns for directory","fromName":"jimmy bahuleyan","fromEmail":"jimmy.cancer@gmail.com","sentAt":"2007-06-19T20:08:21Z","receivedAt":"2007-06-19T20:08:21Z","isPatch":false,"sender":{"key":"jimmy.cancer@gmail.com","avatar":null},"body":"(Please Cc on replies)\n\nI just started using git (yes, newbie ;) and hit a problem that i cant\nseem to solve.\n\nIs there a way where I could specify a pattern in .git/info/exclude that\nwould make git ignore directories.\n\nSuppose I had in each of my project's sub-directories a directory called\n'IGNORE/', how do I make git ignore this directory (and all it's\ncontents)?\n\nI tried putting in\n\nIGNORE/*\n\nbut this only takes care of the directory in the root dir. Then I tried\n\n*/IGNORE/*\n\nwhich doesn't work for dirs at >1 depth. I did read gitignore man page\n(and it looks impossible .. ):\n\nSo, is there any way I can do this without adding a gitignore file in\neach of my sub-directories?\n\n-jb\n-- \nTact is the art of making a point without making an enemy.\n"},{"id":"45378","messageId":"20070619203449.GB4180@steel.home","threadId":"8655","inReplyTo":"20070619200821.GA16423@camelot","subject":"Re: git exclude patterns for directory","fromName":"Alex Riesen","fromEmail":"raa.lkml@gmail.com","sentAt":"2007-06-19T20:34:49Z","receivedAt":"2007-06-19T20:34:49Z","isPatch":false,"sender":{"key":"raa.lkml@gmail.com","avatar":"https://avatars.githubusercontent.com/u/324101?v=4"},"body":"jimmy bahuleyan, Tue, Jun 19, 2007 22:08:21 +0200:\n> Is there a way where I could specify a pattern in .git/info/exclude that\n> would make git ignore directories.\n\nput it in .gitignore in the top-level directory (just the \"IGNORE\").\n.gitignore works recursively.\n"}]}