logoalt Hacker News

hetmantoday at 4:13 AM1 replyview on HN

If all I'm doing with git rebase is reorganising my commits, and I have to deal with conflicts, after I'm done, I always git diff my pre-rebase head with post rebase head commit hash. I can quickly see I've messed something up if the diff isn't empty. For more complex tasks it's best to leave the rearranging until last, but where not possible, the diff is still pretty useful to double check my work.


Replies

seba_dos1today at 7:56 AM

range-diff can be useful for that too.