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

git rm -r --cached .  // 刪除緩存

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

git commit -m '更新.gitignore文件'  //從新提交文件到倉庫
相關文章
相關標籤/搜索