• 主要是由于之前commit过某些文件和文件夹,导致无法忽略这些文件
  • 采用命令git rm --cached "文件路径"
  • 删除文件夹的时候,出现 not removing 'game/logs' recursively without -r,说明我们需要添加参数 -r 来递归删除文件夹里面的文件
  • git rm -r --cached "文件路径"
  • 然后commit

相关文章:

  • 2022-12-23
  • 2022-02-07
  • 2022-03-02
  • 2022-12-23
  • 2021-04-14
  • 2022-12-23
  • 2021-08-06
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-28
  • 2021-09-26
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案