Desfazer compromete e solte todos os arquivos
# In case you want to undo the last commit and unstage all the files
# you can use the following:
git reset HEAD~;
# or
git reset --mixed HEAD~;
# mixed will reset the index but not the working tree
# (i.e., the changed files are preserved but not marked for commit)
# and reports what has not been updated. This is the default action.
Active Programmer