1、上传代码过程中遇到 git help gc错误解决方法,有两种方式,推荐第一种方式。

$ git fsck

$ git gc --prune=now

如果执行完上面的命令还是不行的话,可以尝试删掉\.git\objects\pack下的文件。重新pull就可以了。记得做好备份。

 

2 遇到如下问题

* branch master -> FETCH_HEAD
Auto packing the repository for optimum performance. You may also
run "git gc" manually. See "git help gc" for more information.
Counting objects: 330851, done.
输入:git config --global gc.auto 0 即可,亲测

相关文章:

  • 2021-08-15
  • 2021-08-08
  • 2021-12-31
  • 2021-07-23
  • 2022-12-23
  • 2021-11-11
  • 2021-06-12
猜你喜欢
  • 2021-07-04
  • 2021-08-14
  • 2021-07-04
  • 2022-12-23
  • 2022-01-09
相关资源
相似解决方案