potatoknight

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2018年11月25日

摘要: 1、git rm your_file 会把index和本地文件都删除掉,可以通过 git reset --hard HEAD 来进行恢复 2、git rm --cached your_file 这样只会把index中的删掉,your_file会变成untracked file,可以通过git res 阅读全文
posted @ 2018-11-25 22:03 potatoknight 阅读(184) 评论(0) 推荐(0) 编辑