Git development
 help / color / mirror / Atom feed
* git rebase -i onto HEAD~n
@ 2009-02-03 15:32 Bisani, Alok
  2009-02-03 15:44 ` Björn Steinbrink
  0 siblings, 1 reply; 6+ messages in thread
From: Bisani, Alok @ 2009-02-03 15:32 UTC (permalink / raw)
  To: git

Hi,

Is it possible to use git rebase -i for the following use case, in a
local branch?

$ git reset --soft HEAD~3
$ # magically squash HEAD~2 & HEAD, ignoring HEAD~1 (which should be
discarded)
$ git commit -m "new commit replacing current HEAD~2 HEAD, without the
commit HEAD~1 (to be discarded)"

I get the error below.

    grep: /home/user/project/.git/rebase-merge/done: No such file or
directory
    Cannot 'squash' without a previous commit

Or could you please suggest another command which is meant to this.

I must mention, that HEAD~3, in my case is the first commit, but I don't
think that makes any difference.

$ git --version
git version 1.6.0

Best regards,
Alok

==============================================================================
Please access the attached hyperlink for an important electronic communications disclaimer: 

http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html
==============================================================================

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-02-03 18:02 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-03 15:32 git rebase -i onto HEAD~n Bisani, Alok
2009-02-03 15:44 ` Björn Steinbrink
2009-02-03 16:22   ` Bisani, Alok
2009-02-03 17:04     ` Björn Steinbrink
2009-02-03 18:00       ` Bisani, Alok
2009-02-03 17:18     ` Sitaram Chamarty

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox