首页  :: 新随笔  :: 管理

git撤销commit

Posted on 2017-10-17 14:18  季枫  阅读(232)  评论(0)    收藏  举报

场景:

不小心commit了一个不应该commit的修改,但是还没有push,想撤销那个commit

 

命令:

a)git log

b)git reset --hard commit_id

智读 | 成都会领科技有限公司官网 | 智读App下载 | 每天听本书的博客 | |