Hacker News new | ask | show | jobs
by actinium226 26 days ago
I don't get how this is meaningfully different from doing something like:

1. Squash all your commits in this branch to one

2. Move that commit to the working directory with the appropriate git reset command

3. Commit hunks as appropriate.

1 comments

It’s mostly the same. But if you realize you forgot to add something to the dirst commit while you’re putting stuff in the second commit then this avoids having to create a fixup commit and then rebasing that afterwards.