git add b.txt rm b.txt git commit -m '删除b.txt文件'
我执行了第三行commit之后提示
commit
On branch master Changes not staged for commit: deleted: b.txt no changes added to commit
然后我再git checkout -- b.txt 还能恢复到暂存区?为什么没有彻底删除掉?
git checkout -- b.txt
慕慕森
大话西游666
相关分类