git 添加 .gitignore 没有生效

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

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

猜你喜欢

转载自www.cnblogs.com/wanderingfish/p/11762784.html