.gitignore文件不生效的解决方法

执行以下命令:
git rm -r --cached .
git add .
git commit -m “清理ignore文件缓存。”
git push
注意,前2条命令最后都有一个点(“.”),一定要加上。

你可能感兴趣的:(Git)