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