From: "Stefan (metze) Metzmacher" <metze@samba.org>
To: git@vger.kernel.org
Subject: Strange behavior with git rebase (-i)
Date: Sat, 02 Feb 2008 11:44:04 +0100 [thread overview]
Message-ID: <47A44974.7050907@samba.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 1145 bytes --]
Hi,
I just hit a really strange thing:
I was on a branch called 'v4-0-test',
then I did a git rebase -i orgin/v4-0-test
and removed some patches and prefixed all others
with 'edit'.
Then:
git commit --amend
git rebase --continue
git commit --amend
git rebase --continue
git commit --amend
git commit --amend (again)
git branch
* v4-0-test
git log
(this showed what I wanted)
git show -p --stat
(to really make sure that the top revision is the one I want)
git push origin v4-0-test
And this pushed the top revision BEFORE the rebase!!!
Because I forgot a 'git rebase --continue' to finalize the rebase.
In the end it's my fault, because I forgot the last rebase --continue,
but I think it's bad that git behaves that way.
Would it be possible to disable some operations while others
are unfinished, git am (-i) might have similar effects.
I was using git 1.5.3.2
Could it be that 6fd2f5e60d4d574ff9e5dd8ce1e229328c785d69 was
created to fix a similar problem?
metze
http://gitweb.samba.org/?p=samba.git;a=commit;h=ec0ee2aa5f4bef32f09a426d91c28c985f843038
and the 10 commits before...:-(
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 249 bytes --]
next reply other threads:[~2008-02-02 11:13 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-02 10:44 Stefan (metze) Metzmacher [this message]
2008-02-02 15:42 ` Strange behavior with git rebase (-i) Johannes Schindelin
2008-02-02 16:25 ` Steven Walter
2008-02-02 17:08 ` Johannes Schindelin
2008-02-03 1:21 ` Stefan (metze) Metzmacher
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=47A44974.7050907@samba.org \
--to=metze@samba.org \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.