-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How can we configure the .pac proxy to git #5516
Comments
Thanks for opening this @pallipavan! Git needs to know the PROXY_SERVER and PORT variables, so linking directly to your .pac file will unfortunately not work. I found a useful command to query the registry and return the proxy server/port your .pac file is using:
That should hopefully return the information you need to then configure your proxy in Git:
Replace |
i am able to get the proxy server and it started working fine for me |
My case is similar with some variance:
What could be the reason for this?? When i update the gitconfig ("C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Git\mingw32\etc"), in remote desktop, with proxy setting (http://proxyserver:8080) it works though i do not want to have manual setting done and expecting it to work the way it works in my office laptop |
@prafullsurana how are you specifically using the .pac file on your laptop? Are you pointing to it in your .gitconfig? Git needs to get your proxy server and credentials from either the proxy config in the .gitconfig file or the HTTP_PROXY environment variable. |
No, Its there in internet explorer's LAN Settings. Same has been set in Virtual Desktop. BTW HTTP_PROXY environment variable has not been set in both. |
It doesn't really work for me. I just have the |
Very belated answer @escapin , but maybe helpful to others: you can open the In case your proxy configuration depends on the network you are currently using, it might be using IP-ranges. |
I cannot fetch or pull or push in my corporate network
Corporate network is configured with .pac file
let me know which command i can use to configure .pac proxy for git
Tried this command git config --global http.proxy http://pac.zscalertwo.net/XXXXXX/global-pac.pac
But it didn;t worked out
Appreciated for reply
The text was updated successfully, but these errors were encountered: