git clone或者上传失败

git clone或者上传失败

1、网速问题,配置最低速度和最低速度时间:

  git config --global http.lowSpeedLimit 0

  git config --global http.lowSpeedTime 999999

2、增大缓存(500m)

  git config http.postBuffer 524288000

3、浅层克隆

  git clone后加上--depth 1 

4、克隆地址http换ssh

 注意换了系统之后git的ssh要更新:

1.出现Are you sure you want to continue connecting (yes/no)?时,选择yes

git clone或者上传失败

2. ls -al ~/.ssh

git clone或者上传失败

3. ssh-****** -t rsa -C "github用户名",按三次回车

git clone或者上传失败

4.cat ~/.ssh/id_rsa.pub生成新的SSH

git clone或者上传失败

5.登陆github,点击头像-settings-new SSH,复制新生成的SSH

git clone或者上传失败