[Solution] git clone problem analysis and resolution failure

Reference links

Problem Description:

  • Whether git clone or pull, have failed, git clone roughly following error message

remote: Counting objects: 5148, done.
remote: Compressing objects: 100% (16/16), done.
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

Analysis and resolution:

  • Because Git limits the size of the error caused by pushing data.

solve:

  • Method 1: Increase the buffer size git

          git config --global http.postBuffer 524288000
          git config --list
  • Method 2: Cloning of the shallow, the depth is set to 1

          git clone http://github.com/target.git --depth 1  # target.git 为目标地址
          cd target
          git fetch --unshallow
  • Solution: Reset the global communications buffer size.

    git config --global http.postBuffer 524288000

  • Still being given:

fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

Guess you like

Origin www.cnblogs.com/anliux/p/11668058.html