If you want to keep local changes, use the following:
rm.git/index git reset HEAD .
Unstaged changes after reset:
modified foo.txt
modified bar.txt
If you want to keep local changes, use the following:
rm.git/index git reset HEAD .
Unstaged changes after reset:
modified foo.txt
modified bar.txt