问题
由于 GFW 的问题,在使用 git 克隆 github 的项目时经常遇到超时的问题。

解决
改变克隆方式,由 https 修改为 ssh
https:// github.com/xxx/iii.git 改为 git@github.com:xxx/iii.git

需要注意的是,git submodule 时我们无法直接修改 https 为 ssh 的方式,因此我们可以分别对无法克隆的 module 单独使用 git clone 的方式来下载,然后再执行 git submodule.

相关文章:

  • 2021-05-28
  • 2021-09-10
  • 2021-12-22
  • 2022-02-06
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-01
猜你喜欢
  • 2021-10-16
  • 2022-01-15
  • 2021-08-26
  • 2022-12-23
  • 2021-05-04
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案