git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Add option to git to ignore binary files unless force added

From
ASAnmol Sethi <me@anmol.io>
Date
May 18, 2018, 18:11 UTC
Message-ID
<B1CF9F53-D414-45E8-AA62-FE9DDD901234@anmol.io>
In-Reply-To
<CA+P7+xpdKPsWuiurD_VEF1dtV44Omfx+Mq2SN1Y1-W1vWAzX_Q@mail.gmail.com>
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.
Show 16 quoted lines
> On May 18, 2018, at 2:09 PM, Jacob Keller <jacob.keller@gmail.com> wrote:
> 
> On Fri, May 18, 2018 at 4:31 AM, Anmol Sethi <me@anmol.io> 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
Previous: Jacob Keller
Message 8 of 8 in “Add option to git to ignore binary files unless force added”
  1. Anmol SethiMay 17, 2018
  2. Jacob KellerMay 17, 2018
  3. Randall S. BeckerMay 17, 2018
  4. Anmol SethiMay 18, 2018
  5. Randall S. BeckerMay 18, 2018
  6. Anmol SethiMay 18, 2018
  7. Jacob KellerMay 18, 2018
  8. Anmol SethiMay 18, 2018

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.