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

Re: Selectively commit/publish files to GIT

From
MBMagnus Bäck <baeck@google.com>
Date
Nov 8, 2013, 14:13 UTC
Message-ID
<20131108141329.GA26790@google.com>
In-Reply-To
<CA+PenvEDY6mc+DyjXy4ebZKdK4R=ucM28MDXGC42XKxvJ=a-pQ@mail.gmail.com>
On Friday, November 08, 2013 at 05:52 EST,
     Thomas Manson <dev.mansonthomas@gmail.com> wrote:
[...]
Show 9 quoted lines
>   How can I search git history for big files and remove them, or mark
> them to be not published ?
> 
> I've tryed this solution found on the link in the error:
> 
> git filter-branch --force --index-filter   'git rm --cached
> --ignore-unmatch giant_file'   --prune-empty --tag-name-filter cat --
> --all
> git commit --amend -CHEAD
[...]
Show 10 quoted lines
> here is the error I have using the GitHub application on Mac :
> (after that I intend to use Eclipse)
> 
> File Ressources/dwr/dwr-3.0.0.110.dev-src.zip is 67.69 MB; this is
> larger than GitHub's recommended maximum file size of 50 MB
> GH001: Large files detected.
> Trace: 8f0259b29260f0c4d7ae4d4ae70e0306
> See http://git.io/iEPt8g for more information.
> File .bzr/repository/packs/a7bcd6ba235114ab88c80fe8a97adcfa.pack is
> 178.76 MB; this exceeds GitHub's file size limit of 100 MB

Did you actually replace the 'giant_file' placeholder with the path to *your* giant file? The error message indicates that you didn't, or that something else went wrong during the filtering.

You can use 'git log' to look for commits touching particular pathnames, making it easy to verify that a file has been eradicated.

git log --all -- path/to/big-honking-file.zip
-- 
Magnus Bäck
baeck@google.com
Previous: Thomas MansonNext: Thomas Manson
Message 2 of 5 in “Selectively commit/publish files to GIT”
  1. Thomas MansonNov 8, 2013
  2. Magnus BäckNov 8, 2013
  3. Thomas MansonNov 8, 2013
  4. Thomas MansonNov 8, 2013
  5. Keshav KiniNov 8, 2013

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.