From: Matthieu Moy <Matthieu.Moy@grenoble-inp.fr>
To: git@vger.kernel.org
Subject: Re: 500Mb file erroneously commited
Date: Mon, 06 Jun 2011 11:10:16 +0200 [thread overview]
Message-ID: <vpq62oj2umf.fsf@bauges.imag.fr> (raw)
In-Reply-To: <20110606075508.GC19127@axel> (Axel Freyn's message of "Mon, 6 Jun 2011 09:55:08 +0200")
Axel Freyn <axel-freyn@gmx.de> writes:
> - if you have already other commit's on top of it, you can use e.g.
> "git rebase" in order to redefine the history... something like (I'm
> not sure it works exactly like that, but in principle)
> git checkout -b tmp <WRONG_COMMIT>
> git rm bigfile
> git commit --amend
> git checkout master
> git rebase tmpfix
> git branch -d tmpfix
That should work, but "git rebase -i" will make it much simpler (just
"edit" or even delete the guilty commit).
--
Matthieu Moy
http://www-verimag.imag.fr/~moy/
prev parent reply other threads:[~2011-06-06 9:10 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-06 7:43 500Mb file erroneously commited Bartolomeo Nicolotti
2011-06-06 7:51 ` Michael J Gruber
2011-06-06 7:55 ` Axel Freyn
2011-06-06 9:10 ` Matthieu Moy [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=vpq62oj2umf.fsf@bauges.imag.fr \
--to=matthieu.moy@grenoble-inp.fr \
--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