From: Olaf Hering <olaf@aepfle.de>
To: git@vger.kernel.org
Subject: pitfall with empty commits during git rebase
Date: Fri, 11 Jul 2014 12:15:47 +0200 [thread overview]
Message-ID: <20140711101547.GA26050@aepfle.de> (raw)
There is an incorrect message when doing "git rebase -i remote/branch".
I have it only in german, see below. what happend is:
#01 make changes on another host
#02 copy patchfile to localhost
#03 apply patchfile
#04 git commit -avs # create commit#1
#05 sleep 123456
#06 make different changes on another host
#07 copy patchfile to localhost
#08 git show | patch -Rp1
#09 git commit -avs # create commit#2
#10 apply patchfile
#11 git commit -avs # create commit#3
#12 git rebase -i remote/branch
pick commit#1 msg
f commit#2 msg
f commit#3 msg
....
".git/rebase-merge/git-rebase-todo" 21L, 707C geschrieben
Sie fragten den jüngsten Commit nachzubessern, aber das würde diesen leer
machen. Sie können Ihr Kommando mit --allow-empty wiederholen, oder diesen
Commit mit "git reset HEAD^" vollständig entfernen.
Rebase im Gange; auf c105589
Sie sind gerade beim Rebase von Branch 'mybranch' auf 'c105589'.
Keine Änderungen
Could not apply 6c5842320acc797d395afb5cdf373c2bfaebfa34... revert
....
Its not clear what '--allow-empty' refers to, git rebase does not seem to
understand this option.
I should have skipped step #09 to avoid the trouble.
git version is 2.0.1. Please adjust the error msg above.
Olaf
next reply other threads:[~2014-07-11 10:15 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-11 10:15 Olaf Hering [this message]
2014-07-11 17:58 ` pitfall with empty commits during git rebase Keller, Jacob E
2014-07-11 18:25 ` Jeff King
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=20140711101547.GA26050@aepfle.de \
--to=olaf@aepfle.de \
--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.