git新加或者更新.gitignore后如何提交

git rm -r --cached .//清空缓存

git add .//重新提交

git commit -m "update .gitignore"

git push

 

模板:

*.iml
.idea/
*.ipr
*.iws
*.class
.out/

posted @ 2018-06-28 19:20  VickyFengYu  阅读(144)  评论(0编辑  收藏  举报