2 ms·
If you ever get yourself in a situation during a rebase, or find that a rebase went wrong, have a look at `git reflog`. Running it gives you a log of all the t
by totallymike 10y ago
If you ever get yourself in a situation during a rebase, or find that a rebase went wrong, have a look at `git reflog`.
Running it gives you a log of all the things `HEAD` has ever pointed at, meaning you can find what you had before a rebase and check that out.
git reflog
git checkout HEAD@{10}
And you're usually good to go.