git deleted状态处理

星期二, 2019-05-07 | Author: Lee | computer, JAVA-and-J2EE | 2,926 views

1. git rm –cached “文件路径”,不删除物理文件,仅将该文件从缓存中删除

2. git rm –f “文件路径”,不仅将该文件从缓存中删除,还会将物理文件删除(不会回收到垃圾桶)

再推送到仓库即可

Tags:

文章作者: Lee

本文地址: https://www.pomelolee.com/1870.html

除非注明,Pomelo Lee文章均为原创,转载请以链接形式标明本文地址

No comments yet.

Leave a comment

Search

文章分类

Links

Meta