原因: 引用文件损坏 解决方法: 将git项目根目录的.git文件夹中对应路径refs/remotes/origin/main的文件删除重新git pull远程仓库的代码即可 参考: https://my.oschina.net/u/4273264/blog/4296434