git undo commit keep changes

C++
git reset @~git reset HEAD^ --softgit reset HEAD^#windows
git reset --soft HEAD~1
Source

Also in C++: