-
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
Improve ease of configuring Git to work with corporate proxy #2789
Comments
@DanielKeogh currently you still need to tell Git about your proxy settings:
Where |
If you just tell Git for me, I would really appreciate it. 👍 (Thanks, this is a feature request now.) |
Thanks for the suggestion! This idea is interesting for the future, but this is beyond the scope of our current roadmap. I added the future-proposal label to this issue and closed it so that we won't get overwhelmed with our backlog! We will revisit this in our next planning session. |
I just want to point out how confusing this issue is for someone who downloads this application, has no configuration required, can login to Github successfully in the app and then.... can't use it. Surely the number of people who use Windows in a corporate environment and are behind a proxy is high (everyone I know in government). |
Any progress? I am getting this error as my system behind proxy. |
Is there a non-command line option to fix this when using GitHub Desktop? I'm in the same situation. On my work laptop, and don't have a command-line option to enter something like:
|
Unfortunately configuring the proxy from the command line is the only solution I'm aware of. |
So, a windows user can access no command line, right ? or could I edit (or add) some config file in my github desktop ? |
Se https://git-for-windows.github.io to install Git on the command line for Windows. |
Thanks, joshaber! Installed it, and ran the command from shiftkey. All is well now. Much appreciated. |
i have faced same problem after trying out one complete day got an easy solution(workaround) double proxied it with nginx so my behind proxy git repository server is mapped to my local and gocd can do cloning easily
|
So.... now that Microsoft owns GitHub.... |
Thanks. At least I can work with 👍 |
i have .pac file |
For anyone else curious about ☝️, have a look at issue #5516. |
I also encountered that difficulty with GitHub Desktop 1.4.3 It was clearly not obvious to: Hopefully community was contributing to this one :-) |
Well, it is proxy problem and i am able to solve this using |
Reopening this issue as in one of our next few releases, we'd like to explore how we can ease the pain of getting onboarded to GitHub Desktop when folks are working in an environment with a proxy. I want to just clarify the primary problem statement, and find out if there's anything missing:
Also want to make sure you have 👀 on this @desktop/support to ensure it properly captures the extent of what we're trying to solve for here. |
Thanks for reopening this @billygriffin. I just want to flesh out the process more fully on a fresh workstation running Windows 10 Pro (64-bit) to show what is confusing to a user. I've installed the app from the Success! Now to download a repository to work on it... I can see repositories on Github.com That's odd... I was just seeing what was on Github.com! Why can't I download a repository |
This is incredibly helpful @radumas, thank you SO much! ❤️ |
Same as @DanielKeogh but with pictures, always easier than a thousand words :) |
well, over here its get resolved by adding github.com in /etc/hosts file and restarting the webserver |
To be clear, for those that don't want to pass their username and password credentials, you can still use a combination of @shiftkey's git command and @schlamar's git config:
|
Hi folks, just as an update we're actively working on making this easier and hopefully transparent for people using nonauthenticating proxies (which represent the majority of proxies as we understand it). We're hoping that this should be available in our next major release. |
Since this is now shipped to beta in #9154 and the other associated issues, I'm going to close this issue. |
For those you who are interested in helping us verify the new functionality supporting proxies, we kindly ask for any feedback as it is much appreciated, Thank you! You will need to run a command to disable the workaround: cc @datalifenyc @radumas @rizwanjaved @renu555 @schlamar @MuhammadFaizanKhan @amayii0 @DanielKeogh @NanoJoey @priyanshnama @AtomicCons |
Hi all! @datalifenyc @radumas @rizwanjaved @renu555 @schlamar @MuhammadFaizanKhan @amayii0 @DanielKeogh @NanoJoey @priyanshnama @AtomicCons I know you've already done the manual setup involved in getting this working, so apologies for the ask. Would you be willing to help us verify that what we're planning to release does actually work as intended by unsetting the proxy config and downloading the current beta version? We've done some manual testing, but verifying that it works from someone who actually experienced the problem first hand would be really helpful in giving us confidence that we're helping others who had the same problem y'all did. Here are the steps:
If it worked properly, using the beta version should just set the proper Git config proxy settings up for you and hopefully is transparent. Please let us know if you're able to test this, and we're happy to answer any questions about the steps if you have them. Thank you! |
I would, but I'm not behind this kind of proxy any more. |
So I'm actually now running into the reverse issue, not necessarily using our proxy while WFH. I got an error message on this line that git config unset --global http.proxy
error: key does not contain a section: unset Also your link in Point 2 is wrong. I will test the new Beta when I am connected to our proxy though! |
@radumas Apologies! I updated my comment. I believe the command should instead be |
just disable antivirus & firewall or |
This shipped in 2.4, so hopefully the vast majority of people using Desktop from behind a proxy it'll just work! Thanks for the input y'all. ❤️ |
Doesn't work for me. I installed 2.4.3 over a previous version (from Nov 2019). |
Neither using .gitconfig nor the corresponding Git command make it use the proxy.
(Yes the last line is correct, we are using HTTP CONNECT to tunnel HTTPS across the HTTP connection) The connection to the proxy is made but a 407 is returned because no credentials are sent. (There is no Proxy-Authorization: header at all in the request to the proxy.) |
I don't believe this issue is fixed as it's not working for me either. I've just installed v2.9.6 and although I've been able to sign in to GitHub Desktop I can't even clone any repos. I continue to get the "Received HTTP code 407 from proxy after CONNECT" error. Updating gitconfig with proxy details, either with or without credentials, makes absolutely no difference, the same error is returned. |
@TomF475 the 407 error usually indicated that your credentials are not being accepted. Can you verify you configured the proxy settings correctly in your .gitconfig? |
Why are we even discussing this here. The issue is closed. Why is it closed?! |
Agree, with @NotAProfessionalDeveloper @TomF475 I posted after the issue was closed because it was not resolved for me. |
Same as @jshealth, Visual Studio Code is enough for me. |
Problem statement
Clarified here: #2789 (comment)
Description
I used "Open In Desktop" on a repository via Firefox, but Desktop was unable to clone it.
The error message:
Cloning into 'C:\Users\zzzz\Documents\GitHub\VsVim'...
fatal: unable to access 'https://github.com/zzzz/zzzz/': Failed to connect to github.com port 443: Connection refused
Error(s) during clone:
git clone failed: exit status 128
Version
GitHub Desktop version: 1.0.0
OS version: Microsoft Windows [Version 10.0.15063]
(c) 2017 Microsoft Corporation. All rights reserved.
Steps to Reproduce
Expected behavior: Expected to clone repo to local machine
Actual behavior: Nothing
Reproduces how often: 100%
The text was updated successfully, but these errors were encountered: