alphayan
alphayan

Reputation: 199

How can I export http_proxy in git bash on win10 global

I usually use git-bash to do some operation like
go get,docker pull,curl -i google.com and so on.

Because I am in China,I need a proxy to programme!

Now I use
export http_proxy=http://127.0.0.1:1080 every time,but it is local and provisional,I feel so bother.
Is there a good way to set the http_proxy global and permanent.

Thank you advance.

Upvotes: 3

Views: 5969

Answers (1)

Navin a.s
Navin a.s

Reputation: 416

For permanent proxy setting set proxy in environment variables. For more details visit : click here or https://docs.cloudfoundry.org/cf-cli/http-proxy.html . If the idea not works remove https:// in variable value.

Upvotes: 1

Related Questions