.gitignore 不生效怎么办?

git rm -r --cached .
git add .
git commit -m update .gitignore 

如果在cmd中需要加git commit -m ‘update .gitignore’ ,生效之后,要提交,把已经提交的需要忽略的文件删除

posted on 2020-01-09 16:52  songzhiwei613  阅读(147)  评论(0编辑  收藏  举报

导航