Comment

Comment by Hackbraten

Why would I use Stacked Git rather than Git’s fixup/interactive rebase dance?

For example:

    git commit -m "one thing"
    # commit hash: deadbeef

    git commit -m "other thing"
    # commit hash: badf00d
(working on one thing) then:

    git commit --fixup deadbeef
(working on the other thing again) then:

    git commit --fixup badf00d
And in the end, when I’m ready to roll each patch into one commit, respectively:

    git rebase -i --autosquash

I do realize that Stacked Git allows me to switch between patches. Which is nice because regular Git wants me to type in SHAs for --fixup.

But I’m not sure I’d take on a new tool dependency just for that. What are other benefits of Stacked Git? Just wondering if I’m missing something.

parent Hackbraten 5 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton