From: "Santi Béjar" <santi@agolina.net>
To: Chandra Sukiman <tmcchandra@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: Reduce number of changes to pack file.
Date: Mon, 28 Mar 2011 15:40:20 +0200 [thread overview]
Message-ID: <AANLkTik19360G7t_cjimCFOAURnuJEA3ztnu3VACWLNV@mail.gmail.com> (raw)
In-Reply-To: <AANLkTimFKGrSCgBShtERaGfd=9y+=q-aHsN3u5Lvf52v@mail.gmail.com>
On Mon, Mar 28, 2011 at 5:33 AM, Chandra Sukiman <tmcchandra@gmail.com> wrote:
> Hi,
>
> I am using git with Dropbox (see
> http://stackoverflow.com/questions/1960799/using-gitdropbox-together-effectively).
> Basically I created a bare repository at dropbox and everyone uses
> that for central repository.
> As the repository size is getting bigger, sometime during the git gc,
> it will create a huge .pack file (300 mb) which need to be uploaded
> and downloaded by everyone.
> I tried to limit the size of the pack to 10m (pack.packSizeLimit =
> 10m), but when doing gc, what happens now is that most of the pack
> files will get re-arranged and modified. This will cause the same
> upload/download issue that I want to solve.
>
> Is there any way for git gc to reduce the number of file changed?
Yes, you can mark those packs you want to keep creating an empty file
in .git/objects/packs/ with the name of the pack but with .keep as the
extension, i.e.:
.git/objects/pack/pack-f525c8673216b3302b4ec2b515e807a2dcfeff57.idx
.git/objects/pack/pack-f525c8673216b3302b4ec2b515e807a2dcfeff57.keep
.git/objects/pack/pack-f525c8673216b3302b4ec2b515e807a2dcfeff57.pack
HTH,
Santi
>
> Thank you
>
> Chandra
> --
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
prev parent reply other threads:[~2011-03-28 13:40 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <AANLkTikqaD7QPCCw86OgGvCHLz1ySu5CzQXoY2rAojxB@mail.gmail.com>
2011-03-28 3:33 ` Reduce number of changes to pack file Chandra Sukiman
2011-03-28 13:29 ` Joshua Juran
2011-03-28 13:40 ` Santi Béjar [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=AANLkTik19360G7t_cjimCFOAURnuJEA3ztnu3VACWLNV@mail.gmail.com \
--to=santi@agolina.net \
--cc=git@vger.kernel.org \
--cc=tmcchandra@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).