3 ms·
Gotta agree with you on that last paragraph. Rebasing is just a tool. It can be used properly, or dangerously. Even so, a simple peek in your reflog and a `git
by tomphoolery 14y ago
Gotta agree with you on that last paragraph. Rebasing is just a tool. It can be used properly, or dangerously. Even so, a simple peek in your reflog and a `git reset` undoes the changes of a rebase just as easily as when you started. It seems the author of the posted article doesn't know too much about the reflog...
Just today, in fact, I had to use the reflog to go back after accidentally rebasing when I should have merged in changes from master into my pull request branch. So all I had to do was `git reset` to the SHA before I did that rebase, and I could redo my merge as if the rebase never happened. The way I found that SHA was `git reflog`, and I urge you to take a peek sometime just to see what it's all about. It's saved me from many an embarrassing situation.