Problem 1:
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
This error is because the project is too long and the tag resource file is too large
Solution one, most of the online solutions: command terminal input
git config — global http.postBuffer five hundred and twenty-four million two hundred and eighty-eight thousand
Some people can solve the problem with the above command, but mine is not. You need the following command, only the clone depth is one
$ git clone /github_ com/large-repository — depth 1
$ cd large-repository
$ git fetch — unshallow
Fill in the middle line with the address of your git warehouse( I use HTTP, not SSH
Solution 2: the general clone HTTP mode is easy to cause this problem, and the SSH mode is also effective, that is, the change from HTTPS:// to git://
The second problem encountered is: 1
warning: templates not found /usr/local/git/share/git-core/templates
Input at terminal
open / usr/local/
In the open directory, you can see:
without git Contents
Open the address below and download git-osx And install,
and http://git-scm.com/download/mac
If so git Contents
And accordingly share,git-core,templates There are all directories, indicating that it’s a matter of permissions.
all directories have permissions Input on the terminal:
0 sudo chmod – R seven hundred and fifty-five / usr/local/git/share/git-core/templates
be careful sudo To create a directory, you need to enter the current Mac User’s password
0 Finally, it’s time to start again clone project
The above problem is that I can’t clone a project successfully with Xcode’s own git, sourcetree and terminal on my Mac.
Problems encountered, other projects can be.