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

.gitignore for large files?

From
Philip Oakley <philipoakley@iee.org>
Date
Jul 23, 2011, 20:00 UTC
Message-ID
<B27BF8C0758741A68E1631A7308E17C6@PhilipOakley>

Has there been any discussion in the past on a method for ignoring large files via the .gitignore process?

It does appear to be a moderately common problem for folk to accidentally commit a large file which bloats their repository and they want rid of it, which causes history re-writes and such palaver.

Perhaps a simple '>' and '<' option (the latter to cover null or minimal files?) with a --warn postfix may be possible. Just an initial thought.

Where would the 'right place' be for me to look at the git code if it was beneficial.

Philip Oakley (UK: Scotland)

Next: Nguyen Thai Ngoc Duy
Message 1 of 6 in “.gitignore for large files?”
  1. Philip OakleyJul 23, 2011
  2. Nguyen Thai Ngoc DuyJul 24, 2011
  3. Philip OakleyJul 25, 2011
  4. Nguyen Thai Ngoc DuyJul 25, 2011
  5. Junio C HamanoJul 25, 2011
  6. Philip OakleyJul 25, 2011

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.