使gitignore文件生效 半夏 收录于 杂记 2020-04-21 约 78 字 预计阅读 1 分钟 次阅读 如果.gitignore不是git初始化的时候添加的,比如后面添加的,中途修改的;不会生效,生效方法: 1 2 3 4 5 $git rm -r --cached . #注意后面的点 $git add . $git commit -m ".gitignore is now working" Please enable JavaScript to view the comments powered by Valine.