ruk·si

Git
Split a Past Commit

Updated at 2018-05-18 10:24
git rebase -i master
# mark the one you want to split as "edit"

git reset HEAD~

# edit the
git add the/file/you.want
git commit -m 'first message'

git add the/other/file/you.want
git commit -m 'second message'

git rebase --continue