From: Jeff King Date: Fri, 26 Oct 2018 11:53:59 GMT Subject: Re: the opposite of .gitignore, whitelist Message-ID: <20181026115358.GA26844@sigill.intra.peff.net> In-Reply-To: <20181026113151.dgjta7tlcjgnttcx@shiar.net> On Fri, Oct 26, 2018 at 01:31:51PM +0200, Mischa POSLAWSKY wrote: > Jeff King wrote 2018-10-26 5:36 (-0400): > > I think what Junio meant is to ignore everything by default, like: > > > > echo '*' >.gitignore > > > > and then selectively use negative patterns (and being in .gitignore, > > that makes them positive "yes, include this") to add things back: > > > > echo 'foo' >>.gitignore > > > > which ends up being roughly the same as your .gitonly concept. > > To clarify, Peff meant to say echo '!foo' to whitelist. See git help ignore. Oops, yes, thank you. -Peff