修改了.gitignore文件不生效的办法

git rm -r --cached .  // 删除缓存

git add -A  // 从新添加文件

git commit -m '更新.gitignore文件'  //从新提交文件到仓库
相关文章
相关标签/搜索