git rm -r --cached .    #新增的忽略文件没有生效,是因为git是有缓存的,而之前的文件在缓存中,并不会清除掉,还会继续提交,所以更新.gitignore文件,要清除缓存文件
git add .
git commit -m 'update .gitignore'
git push origin master

  

 

相关文章:

  • 2021-08-16
  • 2022-02-23
  • 2022-12-23
  • 2021-09-29
  • 2021-12-02
  • 2021-04-14
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-02
  • 2022-12-23
  • 2021-12-15
相关资源
相似解决方案