What I'm trying to do is split up both changes into two separated commits. For example I got a file foo.txt with the following content:
foo.txt
1 foo
now the filename and content was changed to the following:
bar.txt
1 foo
I managed to let git recognize the filename change and stage it (with git rm and git add), this is what git shows me with
git status
renamed: foo.txt -> bar.txt
How can I continue to get two commits, one with the filename change and one with the content change?