SourceTree添加 .gitignore 配置不生效
解决方案
1、git清除本地缓存,然后再提交:

注意后面点
git rm -r --cached . git add . git commit -m 'update .gitignore' git push -u origin master
博客文章可以转载,但不可以声明为原创.
1、git清除本地缓存,然后再提交:

注意后面点
git rm -r --cached . git add . git commit -m 'update .gitignore' git push -u origin master
博客文章可以转载,但不可以声明为原创.