修改.gitignore文件后不生效 2017-08-24 本文已影响8人 Harlin_ 清除暂存区 git rm -r --cached . 根据.gitignore添加文件到暂存区 git add . 提交更改 git commit -m '提交信息'