git odstrániť commit pred stlačením
# Removes latest commit from the stash, KEEPS changes
git reset --soft HEAD~
# Removes latest commit from the stash, DELETES changes
git reset --hard HEAD~
vrátiť git commit po stlačení
git reset <hash> # Run this then merge, commit, and push
vrátiť commit git pred stlačením
git reset HEAD~