SourceTree添加 .gitignore 配置不生效

解决方案

1、git清除本地缓存,然后再提交:

注意后面点

git rm -r --cached . git add . git commit -m 'update .gitignore' git push -u origin master

 博客文章可以转载,但不可以声明为原创.

posted @ 2020-04-19 11:05  MirZhang  阅读(695)  评论(3)    收藏  举报