Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does git lfs work behind a proxy?

Tags:

git

git-lfs

My failed attempt:

```

$ git push origin master
batch response: Post proxyconnect tcp: tls: oversized record received with length 20527

like image 242
WilderField Avatar asked Oct 17 '22 14:10

WilderField


2 Answers

Git LFS will use your environment variable HTTPS_PROXY over the setting in ~/.gitconfig

Be sure that HTTPS_PROXY is set correctly. HTTPS_PROXY requires an http url.

For example:

HTTPS_PROXY=http://proxy:8080 https_proxy=http://proxy:8080

like image 107
WilderField Avatar answered Oct 21 '22 00:10

WilderField


Just set the proxy in git configs, and git-lfs should recognize the settings.

Take a look at this issue: https://github.com/git-lfs/git-lfs/issues/1125 Check this answer about how to set git proxy https://stackoverflow.com/a/19213999

like image 38
tjysdsg Avatar answered Oct 21 '22 00:10

tjysdsg