carthage git early EOF, index-pack failed

remote: Enumerating objects: 1265, done.
remote: Counting objects: 100% (1265/1265), done.
remote: Compressing objects: 100% (1003/1003), 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

$git config –global core.compression 0

[Tip] Git 강제로 ssh 사용 설정

GitHub 콘솔이나 다른 툴 사용하면 https, ssh 구분해서 사용하는게 귀찮을 경우

https -> ssh 강제로 바라보도록 설정하면 편하다.

git config --global url."git@github.com:".insteadOf "https://github.com/"