网页撤销后ubuntu本地撤销

   git reset --hard <commit_id>

回到上一个commit;

之后再    git reset --hard ;

原文地址:https://www.cnblogs.com/Ph-one/p/5953289.html