From: Mischa POSLAWSKY Date: Fri, 26 Oct 2018 11:31:51 GMT Subject: Re: the opposite of .gitignore, whitelist Message-ID: <20181026113151.dgjta7tlcjgnttcx@shiar.net> In-Reply-To: <20181026093644.GA20876@sigill.intra.peff.net> 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. -- Mischa