gitignore 不起作用

修改gitignore 后, 当之前的已经存在的文件 会不起作用,需要先清除gitignore 缓存后重新执行git提交操作。

 git清除本地缓存命令如下:

git rm -r --cached .

git add .

git commit -m 'update .gitignore'

发布了42 篇原创文章 · 获赞 35 · 访问量 31万+

猜你喜欢

转载自blog.csdn.net/wang603603/article/details/86640044