Situation:
Now we have three different states. The state of HEAD, the state
You can use git-checkout-index. Be aware that you need to add
-f
-f -a