git deleted状态怎么处理

  • 一种是 git rm --cached "文件路径",不删除物理文件,仅将该文件从缓存中删除;

  • 一种是 git rm --f "文件路径",不仅将该文件从缓存中删除,还会将物理文件删除(不会回收到垃圾桶)

  • 然后再推送到仓库

猜你喜欢

转载自blog.csdn.net/u014314303/article/details/80773262