I've installed the Squid through Docker and tested with curl and browser, it works fine!
And then I'm going to set the Http proxy to git, the below is my command:
git config --global http.proxy http://myserverip:3128
And then, here is the result of the above command in the git config.
$ cat ~/.gitconfig
[http]
proxy = http://squid.veronalabs.com:3128
sslVerify = false
But the git clone doesn't work!
$ git clone git@gitlab.com:repo/project.git
Cloning into 'panel'...
ssh: connect to host gitlab.com port 22: Connection timed out
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
And anyway, I've added this proxy for outgoing connections:
$ export http_proxy=http://myserverip:3128
$ export https_proxy=http://myserverip:3128
I really appreciate any helps!