top | item 46265304

(no title)

martinvonz | 2 months ago

You can do that with just `jj split` too. The FAQ entry you linked to is for when you accidentally amended a commit and now you want to restore the bookmark to the old commit and move the changes you amended into a new commit on top instead.

discuss

order

1718627440|2 months ago

Sounds like "git reset" to me. Not sure, if it is, but this sounds to be easier in git.

martinvonz|2 months ago

I have used both Git and jj. I find it easier in jj.

`git reset` by itself doesn't split a commit AFAIK. You need to then `git add -p` and `git commit` (and recover the commit message from the old commit). And what happens if you had other changes in the working copy first? Or if you want to split a commit that's not at HEAD?