git удалить фиксацию перед нажатием
# Removes latest commit from the stash, KEEPS changes
git reset --soft HEAD~
# Removes latest commit from the stash, DELETES changes
git reset --hard HEAD~
отменить фиксацию git после нажатия
git reset <hash> # Run this then merge, commit, and push
отменить фиксацию git перед нажатием
git reset HEAD~