From: Anmol Sethi Date: Fri, 18 May 2018 18:11:10 GMT Subject: Re: Add option to git to ignore binary files unless force added Message-ID: In-Reply-To: How about a hook to ignore certain files? Then you could ignore based on the contents of the fail instead of just the extension. It’d be very flexible. > On May 18, 2018, at 2:09 PM, Jacob Keller wrote: > > On Fri, May 18, 2018 at 4:31 AM, Anmol Sethi wrote: >> This definitely works but it would be more clean to just have git ignore the binary files from the get go. >> > > Sure it'd be more convenient for you. But there are loads of possible > combinations, and the idea of what constitutes unwanted files is > hugely variable to each user. We don't really want to end up > supporting a million different ways to do this, and the hooks > interface provides a reasonable method for rejecting commits with > unwanted contents. > > > Thanks, > Jake -- Best, Anmol