logoalt Hacker News

fleventyninetoday at 4:03 AM2 repliesview on HN

I typically work with commit chains of at least 5 commits in various states of code review, so I spend at least 60% of my development time editing an old commit in the middle of a rebase -i.


Replies

nopurposetoday at 8:32 AM

You might find `jj` to help you there: all changesets have stable identifier and their content can be updated at any moment in-place.

TLDR; `jj edit <what_to_edit>; $EDITOR` will update a commit in the middle of the branch