Git reset last commit without losing changes

By k, 5 December, 2019
git reset HEAD~1