撤销上一次的commit

撤销上一次的commit

git reset HEAD~

 

如果是撤销所有的已经add的文件:

git reset HEAD .

 

posted @ 2019-12-19 13:46  liliyou  阅读(190)  评论(0编辑  收藏  举报