将git走代理,避免git连接远程仓库超时。
用户目录下找到.gitconfig
文件,proxy
后添加本地代理,记得替换成对应的端口地址。
[user] name = 全局用户名 email = 全局邮箱 [core] longpaths = true [http] proxy = http://127.0.0.1:对应端口 [filter "lfs"] clean = git-lfs clean -- %f smudge = git-lfs smudge -- %f process = git-lfs filter-process required = true
本文作者:Geaming
本文链接:
版权声明:本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!