Gitlab拉取代码报503错误解决方法

参考
https://blog.csdn.net/fangxiananvhai/article/details/102659875

  1. 故障现象
    克隆代码时报503错误
'git clone' has been updated in upstream Git to have comparable
speeds to 'git lfs clone'.
Cloning into 'psy_model_v3'...
fatal: unable to access 'http://gitlab.xxx.com/xxx/model_v3.git/': The requested URL returned error: 503
Error(s) during clone:
git clone failed: exit status 128
  1. 原因
    之前为了下载国外代码设置了代理
    查看代理设置了http和https代理
# git config --global --list
user.email=you@example.com
user.name=Your Name
filter.lfs.required=true
filter.lfs.clean=git-lfs clean -- %f
filter.lfs.smudge=git-lfs smudge -- %f
filter.lfs.process=git-lfs filter-process
core.compression=-1
http.postbuffer=600000
http.lowspeedlimit=0
http.lowspeedtime=999999
http.proxy=http://192.168.8.49:10809
https.postbuffer=2024288000
https.proxy=http://192.168.8.49:10809
  1. 解决方法
    取消代理
# git config --global --unset http.proxy
# git config --global --unset https.proxy
posted @ 2024-08-22 09:13  minseo  阅读(39)  评论(0编辑  收藏  举报