While you have the branch develop
checked out, simply do a rebase -i on top of FluentValidationTrial
:
git checkout develop
git rebase -i FluentValidationTrial
Then drop any duplicate entries in the commits.
The other alternative is to go to git reflog, and restore a rebased branch on its past SHA1.
(As in "undoig a rebase")
But do use Git 2.27 (Q2 2020), as before that, "git rebase -i
" did not leave the reflog entries correctly.
See commit 1f6965f (07 Apr 2020) by Elijah Newren (newren
).
(Merged by Junio C Hamano -- gitster
-- in commit 3aa30cc, 22 Apr 2020)
sequencer
: honor GIT_REFLOG_ACTION
Signed-off-by: Elijah Newren
There is a lot of code to honor GIT_REFLOG_ACTION
throughout Git, including some in sequencer.c
; unfortunately, reflog_message()
and its callers ignored it.
Instruct reflog_message()
to check the existing environment variable, and use it when present as an override to action_name()
.
Also restructure pick_commits()
to only temporarily modify GIT_REFLOG_ACTION
for a short duration and then restore the old value, so that when we do this setting within a loop we do not keep adding " (pick)
" substrings and end up with a reflog message of the form
rebase (pick) (pick) (pick) (finish): returning to refs/heads/master