Git gitcommitundolastreset 09/01/2017

Undo last git commit, leaving local changes:

Undo commit only, but leave index changes:

git reset --soft HEAD~1

Undo both commit and index changes:

git reset HEAD~1

Both actions leave changes in local files intact.