git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Eugine Kosenko" <eugine.kosenko@gmail.com>
To: git@vger.kernel.org
Subject: Repo cleanup problem
Date: Fri, 11 May 2007 11:03:32 +0300	[thread overview]
Message-ID: <9909dee80705110103h5b848490m296c001beecfa1f1@mail.gmail.com> (raw)

I'm sorry, if it is a FAQ.

I use git to track my own changes in a project, i.e, this is a private
(not public) repository. Some time ago I've accidentally committed a
big amount (about of 50M) of crap into the repository, and make a
mature set of commits after this.

For now I'm looking for a way to remove the garbage commit. I've found
a way to remove any commit using git-checkout, git-reset and
git-rebase. But, when I even git-reset the repository to the very
first (root) commit, I see the size is still large enough, i.e., the
crap is still there. I've tried many combinations of git-gc,
git-prune, git-repack, git-prune-packed etc, but the size of the
repository is still the same. The only way I see now is to git-clone
the repository -- the new one is essentially smaller, but needs to
reconstruct the local branches.

Is this (make a clone) the only proper way to clenup a repository, or
there is another magic tool to cleanup the repositories?

             reply	other threads:[~2007-05-11  8:03 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-11  8:03 Eugine Kosenko [this message]
2007-05-11  8:10 ` Repo cleanup problem Matthieu Moy
2007-05-11  8:19   ` Karl Hasselström
2007-05-11  9:32   ` Eugine Kosenko

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=9909dee80705110103h5b848490m296c001beecfa1f1@mail.gmail.com \
    --to=eugine.kosenko@gmail.com \
    --cc=git@vger.kernel.org \
    /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).