git 添加 .gitignore 没有生效

加入.gitignore 文件,忽略文件也被上传,执行下面操作然后push.

  • git rm -r --cached .
  • git add .
  • git commit -m 'add .gitignore'

posted on 2019-10-30 08:39  游荡的鱼  阅读(587)  评论(0编辑  收藏  举报

导航