git回滚

三种回滚的场景

image

 git restore xxx .(回滚当前目录全部)回滚工作区

 

image

 head~1代表指向从head移到head~1,于是最近一条提交就被删除(回滚)了

image

 

 

posted @ 2026-10-24 01:38  jokercheems  阅读(3)  评论(0)    收藏  举报