在git-bash窗口中删除文件夹的时候突然出现了这个问题:fatal: pathspec ‘fileName’ did not match any files

Git报错解决:fatal: pathspec‘fileName'  did not match any files

产生原因:经过分析该文件夹下有文件存在于.gitignore文件中,因此,不让动!

Git报错解决:fatal: pathspec‘fileName'  did not match any files

解决方案:

1、从.gitignore中移除该忽略的文件

Git报错解决:fatal: pathspec‘fileName'  did not match any files

2、git add .gitignore文件并git commit至版本库

3、再来删除上述文件,可以正常删除。

Git报错解决:fatal: pathspec‘fileName'  did not match any files

 

相关文章:

  • 2022-12-23
  • 2021-04-21
  • 2022-02-18
  • 2022-12-23
  • 2021-10-04
  • 2021-07-31
  • 2022-12-23
  • 2021-04-17
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-26
  • 2021-03-28
  • 2022-12-23
  • 2021-12-16
相关资源
相似解决方案