• zygo_histo_morpheus@programming.dev
    link
    fedilink
    arrow-up
    1
    ·
    8 months ago

    The benefit with rebase is if you want to have maybe 4 commits insteadd of 10. When reviewing a large pr, I find that it’s helpfull if it’s broken up into a couple of coherent commits so that I can review it commit by commit. It’s easier to follow the logic of why something is being changed if it’s associated with a specific commit.

    Sometimes squashing the entire commit is the right choice, in which case you can do what you’re doing or use some built in feature to do that.