Git: Undoing last commit without erasing changes

git reset --soft HEAD~
Advertisements