I have two working branches, master and forum and I\'ve just made some modifications in forum branch, that I\'d like to ch
splitme) into two.splitme. splitme. The rebase steps (1 & 7) can be skipped if the splitme is the most recent commit.
git rebase -i splitme^
# mark splitme commit with 'e'
git reset HEAD^ -- $files
git commit --amend
git add $files
git commit -m "commit with just some files"
git rebase --continue
If I wanted the split files to be committed first, I'd then rebase -i again and switch the order
git rebase -i splitme^
# swap order of splitme and 'just some files'