Git Clone Error

Git Clone Error

Failed to receive SOCKS4 connect request ack.

解决方法

1
2
git config --global http.proxy 'socks5://127.0.0.1:1080' 
git config --global https.proxy 'socks5://127.0.0.1:1080'

error: RPC failed; curl 18 transfer closed with outstanding read data remaining

解决方法

    1. –depth 1
1
2
3
4
5
6
7
8
9
10
11
12
# 关闭压缩
git config --global core.compression 0
# 部分克隆
git clone --depth 1 http://github.com/large-repository
cd large-repository
# 进入新目录并检索其余的克隆
git fetch --unshallow

# 或者
git fetch --depth=2147483647
# 做一个定期拉
git pull --all
    1. 切换使用 ssh(git clone [email protected]:my_group/my_repository.git)
    1. 增加缓冲区大小
1
git config --global http.postBuffer 524288000

参考


  GitLinuxTermux

评论

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×