问题:

  git push失败,提示“error: unpack failed: error Missing tree 129d587458f56f4b1f9c492824a97dc717257516”

    git push  origin HEAD:refs/for/module

解释:

  git push 默认是带-thin参数的(带过滤),push时会自动进行优化,将所发送的包大小降到最小。

  做法是发送时忽略本地仓库和远端仓库中共有的部分。

出现error的原因:

  本地由于多次git commit导致一些commit ID生成,有可能没有把他们清除干净,所以本地的git对象和服务器上的git不一致,在push的时候产生冲突引起fail。

解决办法:

  git push --no-thin origin HEAD:refs/for/module

注:本人拙见,有不同看法的请提出,大家共同学习。

相关文章:

  • 2021-10-08
  • 2021-09-19
  • 2022-12-23
  • 2021-06-08
  • 2021-12-01
  • 2021-11-04
  • 2021-05-01
猜你喜欢
  • 2022-12-23
  • 2021-08-07
  • 2022-12-23
  • 2022-12-23
  • 2021-12-21
  • 2022-12-23
  • 2021-04-12
相关资源
相似解决方案