Hacker News new | ask | show | jobs
by nchmy 14 days ago
Someone already said this, but you just use jj split. Either split the whole file or use interactive mode to split the exact lines. You could also use squash if you want to move it to an existing revision/commit.

Jj makes it vastly more efficient and ergonomic to perform surgery across commits - no staging area to think about, remember, stumble over, etc. Conflicts don't stop the world.

It's all dead simple if you use jjui - don't even need to learn any jj syntax

1 comments

Very true. Though ime, jj's CLI commands are so much more logically designed than git's, I think fewer people need to reach for a GUI with it. I almost never do.