public inbox for git@vger.kernel.org 
 help / color / mirror / Atom feed
From: Gelonida <gelonida@gmail•com>
To: git@vger•kernel.org
Subject: how to squash a few commits in the past
Date: Mon, 3 May 2010 09:33:56 +0000 (UTC)	[thread overview]
Message-ID: <loom.20100503T112508-677@post.gmane.org> (raw)

Hi,



I posted already a similiar question about how to squash the all the commit
hostory older than a certain commit into one commit.


This question is slightly different.


I'm having a git repository.

Suddenly I noticed, that git pull became rather slow.

The reason:
One of the team members accidentally commited a very huge file together with
some useful sources.
a few commits later he noticed his error and removed the huge file.



The plan would be:
- create a new git repository without the huge file
- let everybody clone the new repository and continue working.


I thought, that I could squash the commit adding the file, removing the file and
the commits in between into one commit.

How could I do this?


Thanks a lot for your help.

             reply	other threads:[~2010-05-03  9:40 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-03  9:33 Gelonida [this message]
2010-05-03 10:09 ` how to squash a few commits in the past Michael J Gruber
2010-05-03 20:45   ` Gelonida
2010-05-03 20:55     ` Gelonida
2010-05-03 21:20     ` Gelonida
2010-05-05 13:19       ` Ramkumar Ramachandra
2010-05-05 21:41         ` Gelonida
2010-05-06  6:45 ` Johannes Sixt

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=loom.20100503T112508-677@post.gmane.org \
    --to=gelonida@gmail$(echo .)com \
    --cc=git@vger$(echo .)kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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