git撤销本地commit

git reset HEAD~
原文地址:https://www.cnblogs.com/smallredness/p/11205423.html