2 ms·
> I've had to spend time fixing history after a Jr engineer did a bad rebase. I tell people to run git log -p --reverse origin/master.. on the rebased branch
by u801e 7y ago
> I've had to spend time fixing history after a Jr engineer did a bad rebase.
I tell people to run git log -p --reverse origin/master.. on the rebased branch and check that everything works before they push up their branch to the remote. I also tell them to run git rebase --exec "linting-command" --exec "unit-test-command" --exec "integration-test-command" and make sure that tests pass for every single commit. If they don't, then they spend time fixing it until they do.