I'm trying to amend changes to previous commit, as described here: How to modify a specified commit in git?
So I have my changes in 'changes to be comitted' state, and I want to 'amend' them to a previous commit, so I go
git rebase -i HEAD~3
but getting the following error:
Cannot rebase: Your index contains uncommitted changes.
Please commit or stash them.
I can't understand what Git is complaining about, since this is the state which the changes are supposed to be in, right?
What am I doing wrong?
I'm using v1.9.3