?潭水无风?

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

在开发板XUbuntu系统上克隆github上的项目,结果失败了报错内容如下:

1 Cloning into 'libusb'...
2 fatal: unable to access 'https://github.com/libusb/libusb/': Could not resolve host: github.com


百度后发现是http代理出现了问题

先输入

# git config --global -l

 

如果出现http的字样,就接下来取消代理,输入

# git config --global http.proxy http://127.0.0.1:1080
# git config --global https.proxy http://127.0.0.1:1080

 

先配置一个新代理,在取消代理

# git config --global --unset http.proxy
# git config --global --unset https.proxy

 

再输入

# git config --global -l

就看不到http或https代理了
再重新克隆项目,这时候就克隆成功了!

posted on 2021-08-23 18:07  ༺潭水无风༻  阅读(2524)  评论(0编辑  收藏  举报