Design of a lock-free DVCS (rsync-/Dropbox-/NFS-safe)
github.com1 pointsby martinvonz0 comments
git reset HEAD^
git add -p
git commit -C HEAD@{1}
> Ok, but then what was your point? git commit -m tmp
git rebase -i HEAD^^ # Use the "edit" action for the first commit
git add -p
git commit -m first
git rebase --continue
git reset HEAD^
The other case I mentioned was if you want to split a commit on another branch. Then you have to insert some additional commands in that sequence. As I said, I know how to do this with Git. I just find it easier to do with jj, where it's `jj split -r xyz` to split commit xyz, whether it's the current working copy, an ancestor commit, or on an unrelated branch.