Re: Leaving large binaries out of the packfile

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Joshua Jensen <jjensen@xxxxxxxxxxxxxxxxx> wrote:
> Sometimes, 'git gc' runs out of memory.  I have to discover which file  
> is causing the problem, so I can add it to .gitattributes with a  
> '-delta' flag.  Mostly, though, the repacking takes forever, and I dread  
> running the operation.

If you have the list of big objects, you can put them into their
own pack file manually.  Feed their SHA-1 names on stdin to git
pack-objects, and save the resulting pack under .git/objects/pack.

Assuming the pack was called pack-DEADC0FFEE.pack, create a file
called pack-DEADC0FFEE.keep in the same directory.  This will stop
Git from trying to repack the contents of that pack file.

Now run `git gc` to remove those huge objects from the pack file
that contains all of the other stuff.

-- 
Shawn.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]