"split" a commit using a previous version of that commit? #2551
-
Here's a situation I've run into a few times:
It's trivial to get the changes that belong in the new commit with I've tried Is there a better approach? (A generic way to generate a commit from a diff, perhaps as an option on |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
There's an entry in the FAQ about this.
Makes sense. |
Beta Was this translation helpful? Give feedback.
-
Immediate red flag (lol) - I treat @ as more of an ephemeral thing, it should rarely be tagged/branched/pushed - basically there are two workflows, using And all the benefits of index being a commit and not needing stashes etc etc remain |
Beta Was this translation helpful? Give feedback.
There's an entry in the FAQ about this.
Makes sense.
jj move
moves a diff from one commit to another. We could have something similar for applying the diff between two arbitrary commits into another commit, if this turns out be a common enough request.