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或者上传失败

 

 

相关文章:

  • 2021-10-10
  • 2022-12-23
  • 2022-12-23
  • 2021-12-26
  • 2021-11-20
  • 2022-01-21
  • 2022-02-24
猜你喜欢
  • 2021-11-15
  • 2021-05-15
  • 2021-09-25
  • 2021-06-14
  • 2022-12-23
  • 2022-12-23
  • 2021-04-12
相关资源
相似解决方案