2 ms·
1) Never use rebase on the master branch. 2) Before you rebase take a note of your current branch's HEAD commit. 3) If things go horribly wrong, you can force
by flippinburgers 4y ago
1) Never use rebase on the master branch.
2) Before you rebase take a note of your current branch's HEAD commit.
3) If things go horribly wrong, you can force your branch to point at the original commit and it will be as if nothing happened. Well as long as you do it immediately. At some point git gc will collect up unreachable commits and delete them.