All of lore.kernel.org
 help / color / mirror / Atom feed
From: Miles Bader <miles@gnu.org>
To: Jonathan Harker <jonathan@catalyst.net.nz>
Cc: git@vger.kernel.org
Subject: Re: git repack with a --reference
Date: Thu, 07 May 2009 14:57:17 +0900	[thread overview]
Message-ID: <87bpq5bgle.fsf@catnip.gol.com> (raw)
In-Reply-To: <4A0261D8.8040105@catalyst.net.nz> (Jonathan Harker's message of "Thu, 07 May 2009 16:21:44 +1200")

Jonathan Harker <jonathan@catalyst.net.nz> writes:
> Hi - hope this isn't too noobish but I'm trying to get an existing git
> checkout to repack/prune/gc itself such that it would be like I had
> cloned it with --reference /path/to/local/repo (i.e. I've added
> /path/to/local/repo to .git/objects/info/alternatives, and I'd like it
> to reduce its objects from 200 MB to 5 MB). Is this
>
> a. possible,
> b. desirable, and
> c. not insane?

I've done this in the past (using "git gc", but same difference I
guess), and it worked as you'd hope, reducing .git to something very
small.

I don't recall any real problems, but you might need to manually
remove any pack ".keep" files first though (I seem to recall something
like that, anyway).

-Miles

-- 
Friendship, n. A ship big enough to carry two in fair weather, but only one
in foul.

  reply	other threads:[~2009-05-07  5:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-07  4:21 git repack with a --reference Jonathan Harker
2009-05-07  5:57 ` Miles Bader [this message]
2009-05-07 17:14 ` Brandon Casey

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=87bpq5bgle.fsf@catnip.gol.com \
    --to=miles@gnu.org \
    --cc=git@vger.kernel.org \
    --cc=jonathan@catalyst.net.nz \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.