方法
- 新建文件夹,右键,open git bash here
- 设置全局代理
# 设置全局代理
git config --global https.proxy http://127.0.0.1:7890
git config --global https.proxy https://127.0.0.1:7890
git config --global http.proxy socks5://127.0.0.1:7890
git config --global https.proxy socks5://127.0.0.1:7890
- 进入huggingface,复制运行这两个
报错
一
fatal: unable to access 'https://huggingface.co/InstantX/InstantIR/': Could not resolve host: huggingface.co
解决
配置socks5
git config --global http.proxy socks5 127.0.0.1:7890
git config --global https.proxy socks5 127.0.0.1:7890
配置http
git config --global http.proxy 127.0.0.1:7890
git config --global https.proxy 127.0.0.1:7890
标签:git,0.1,global,HuggingFace,127.0,报错,proxy,config,下载
From: https://www.cnblogs.com/lichunlei/p/18545958