Outline

在 .gitignore 文件中新加了过滤规则,但push代码后发现规则并没生效;

解决

大概率是缓存问题,故执行下面操作:

git rm -r --cached .  # 删除缓存
git add .
git commit -m 'update .gitignore'
git push origin develop  # 提交到指定分支

操作后.gitignore生效

相关文章:

  • 2021-06-12
  • 2022-12-23
  • 2021-05-26
  • 2021-08-16
  • 2021-12-05
  • 2021-11-03
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-10-22
  • 2022-12-23
  • 2022-12-23
  • 2021-07-20
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案