logoalt Hacker News

nchmy • today at 10:44 AM • 0 replies • view on HN

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