摘要:
1、git rm your_file 会把index和本地文件都删除掉,可以通过 git reset --hard HEAD 来进行恢复 2、git rm --cached your_file 这样只会把index中的删掉,your_file会变成untracked file,可以通过git res 阅读全文
摘要:
1、git rm your_file 会把index和本地文件都删除掉,可以通过 git reset --hard HEAD 来进行恢复 2、git rm --cached your_file 这样只会把index中的删掉,your_file会变成untracked file,可以通过git res 阅读全文
|