zoukankan      html  css  js  c++  java
  • 【转】[git]error: pack-objects died of signal

    现象:

    git clone 或是 git pull的时候会出错,error 大概如下

    remote: Enumerating objects: 7433, done.
    remote: Counting objects: 100% (7433/7433), done.
    error: pack-objects died of signal 993/3835)   
    error: git upload-pack: git-pack-objects died with error.
    fatal: git upload-pack: aborting due to possible repository corruption on the remote side.
    remote: aborting due to possible repository corruption on the remote side.
    fatal: protocol error: bad pack header

    分析:

    因为要clone的代码多达8,  10个G,在加上里面的分支以及历史太多。

    因此直接用git clone 命令去克隆的时候经常导致服务端内存爆满,clone不下来。

    解决方法:

    git clone  git@xxx/xxxxxx.git

    git clone 不下来,加一个  --depth=1 的参数, 这个参数会只下载最近一次的提交记录。

    如果不需要去关注以前的版本,可以只clone最新的版本,使用如下命令:

    git clone  --depth=1 git@xxx/xxxxxx.git
    ---------------------
    作者:champwang
    来源:CSDN
    原文:https://blog.csdn.net/champwang/article/details/85523349
    版权声明:本文为博主原创文章,转载请附上博文链接!

    每天进步一点点,快乐生活多一点。
  • 相关阅读:
    [LeetCode]Contains Duplicate
    C++基础之泛型算法
    KMP算法
    [LeetCode]Shortest Palindrome
    [LeetCode]House Robber
    Palindrome Linked List leetcode
    Rotate Array leetcode
    Rotate Image LeetCode
    Rotate List leetcode
    Reorder List leetcode
  • 原文地址:https://www.cnblogs.com/yiruliu/p/11061073.html
Copyright © 2011-2022 走看看