Skip to content

Instantly share code, notes, and snippets.

@iTofu
Created August 13, 2018 07:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iTofu/b449cd153cc8f0a04b0b318b1302ec50 to your computer and use it in GitHub Desktop.
Save iTofu/b449cd153cc8f0a04b0b318b1302ec50 to your computer and use it in GitHub Desktop.
Git error: "The remote end hung up unexpectedly"

clone repo

$ git clone http://github.com/large-repository --depth 1
$ cd large-repository
$ git fetch --unshallow

existing repo

$ git fetch --depth 1
$ git fetch --unshallow

摘自 Stackoverflow,解决远端文件太大等引起的 fetch 中断。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment