Re: Aborting git rebase --edit-todo
- From
Carlo Arenas <carenas@gmail.com>
- Date
- Sep 3, 2020, 19:59 UTC
- Message-ID
- <CAPUEspgScq1ay7KgSBmgAW_8SAymWpydQm5gAO9WiTumtu-e8w@mail.gmail.com>
- In-Reply-To
- <CAG0OSgcUi6sKJQmUEd4-Lu5qAiQqKk7X7aSRvRtcBWkcKj4f1g@mail.gmail.com>
On Thu, Sep 3, 2020 at 12:36 PM Victor Toni <victor.toni@gmail.com> wrote:
> > is more difficult to recover from. (I'm still thankful for `.git/logs/HEAD`)
another command that might not be that well known and that will always recover from a botched merge (or a rebase in this case) :
$ git reset --hard ORIG_HEAD
Carlo
PS. `git reflog` might be also interesting; sorry if going slightly off topic