From: Gelonida <gelonida@gmail.com>
To: git@vger.kernel.org
Subject: how to delete the entire history before a certain commit
Date: Tue, 04 May 2010 00:23:55 +0200 [thread overview]
Message-ID: <hrnidr$etm$1@dough.gmane.org> (raw)
Hi,
I noticed, that this post never arrived :-( . So here again.
We have a git repository, whose size we want to reduce drastically due
to frequent clone operations and a slow network connection.
The idea is following:
* archive the git repository just in case we really have to go back in
history.
create a new git repository, which shall only contain last month's activity.
all changes before should be squashed together.
It would be no problem if the very first commit remains unmodified.
I made some attempts with
git rebase -i
but I always encounter errors.
Example error is a cherry pick which can't be applied.
Is git rebase the correct way to delete en entire history section or are
there smarter ways to do this? (e.g. create a new repository with last
months state as starting point and some 'magic' to replay from this
point on with all branches and merges_
thanks for any suggestion.
next reply other threads:[~2010-05-03 22:24 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-03 22:23 Gelonida [this message]
2010-05-03 22:45 ` how to delete the entire history before a certain commit Jakub Narebski
2010-05-03 23:11 ` Gelonida
2010-05-03 23:42 ` Jakub Narebski
2010-05-03 23:58 ` Gelonida
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='hrnidr$etm$1@dough.gmane.org' \
--to=gelonida@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).