# HG changeset patch # User Oleksandr Gavenko # Date 1488982676 -7200 # Node ID 0263a79eeb3be7eaa4ff8cb4cd73df5891008939 # Parent 9295a7068b806dd364fa251bc01fb4d6f84d2154 Undo mistaken rebase. diff -r 9295a7068b80 -r 0263a79eeb3b git.rst --- a/git.rst Sun Mar 05 23:40:09 2017 +0200 +++ b/git.rst Wed Mar 08 16:17:56 2017 +0200 @@ -255,6 +255,15 @@ $ git remote show $remote +Undo mistaken rebase +==================== + +If there are no any ``reset``, ``rebase`` or ``merge`` afterwards the easiest +way to recode to pre-rebase state is one of:: + + $ git rebase --abort + $ git reset --hard ORIG_HEAD + Debug git network operation ===========================