For my own memory more than anything else:
git rebase -i <the last commit before the file appeared>
- edit those commits where the file appears with other files (Highlight using
gitk), then for each of those:
git reset HEAD^
- Create one commit for the file, and another for the rest.
git rebase --continue
Source: Splitting commits