Rewriting history
See also:
# Splitting commits
# The last commit
Just reset and commit the individual pieces.
git reset HEAD~
So, what is the difference between the caret and tilda?
# Commits older than the last one
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
)