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 commit
git reset <hash> # Run this then merge, commit, and push
在推送之前撤消提交git
git reset HEAD~