Git 撤销上一次commit

$ git log
commit 000b9e7546efb9bf4b3bc96abc83c25d9327480d 为我的错误提交分支
Author: liutao@iwork365.com .com>
Date:   Thu Mar 30 14:05:50 2017 +0800
    检查

commit 308c74e39f50c4c2815b4851ccbfbf80b947d88f
Author: liutao@web1.com .com>
Date:   Thu Mar 30 13:56:10 2017 +0800
    调试

  git 撤销上一次commit
$ git reset --hard 308c74e39f50c4c2815b4851ccbfbf80b947d88f

你可能感兴趣的:(Git)