1、git log 查看提交日志
2、放弃或回滚本次提交
git reset --hard commitId
commitId填上一次提交的commitId
3、输入git pull 更新
输入git status 查看状态,本次提交已经回滚了