See also:
Just reset and commit the individual pieces.
git reset HEAD~
So, what is the difference between the caret and tilda?
- Use interactive rebase against the commit you want to split.
git rebase -i COMMITSHA1~
- Choose to
edit
the commit on the interactive screen. - Reset…
git reset HEAD~
- Commit the individual pieces.
- Continue the rebase (eg,
git rebase --continue
)