How Can I Configure GitHub Desktop/Windows to Work with a Proxy?
New to working with git in Windows. I downloaded the GitHub Desktop application and can connect my account, but doing pushes/pulls fails because of an unresolved host. Asking around the workplace I got the following suggestion to type this command into the git shell.
git config --global http.proxy http://username:password@proxy.workplace.com:8080
Does this:
- Store my password in plain text?
- Send my password in plain text?
Doesn't GitHub for Desktop generate and use SSH keys instead (I got an email notification when I first connected my account)? How can I configure GitHub Desktop to work with this proxy?
proxy github-for-windows github-desktop
add a comment |
New to working with git in Windows. I downloaded the GitHub Desktop application and can connect my account, but doing pushes/pulls fails because of an unresolved host. Asking around the workplace I got the following suggestion to type this command into the git shell.
git config --global http.proxy http://username:password@proxy.workplace.com:8080
Does this:
- Store my password in plain text?
- Send my password in plain text?
Doesn't GitHub for Desktop generate and use SSH keys instead (I got an email notification when I first connected my account)? How can I configure GitHub Desktop to work with this proxy?
proxy github-for-windows github-desktop
Similar to stackoverflow.com/questions/16153450/… but there's no answer for GitHub Desktop, and ssh specifically
– raphael
Jul 27 '16 at 14:01
add a comment |
New to working with git in Windows. I downloaded the GitHub Desktop application and can connect my account, but doing pushes/pulls fails because of an unresolved host. Asking around the workplace I got the following suggestion to type this command into the git shell.
git config --global http.proxy http://username:password@proxy.workplace.com:8080
Does this:
- Store my password in plain text?
- Send my password in plain text?
Doesn't GitHub for Desktop generate and use SSH keys instead (I got an email notification when I first connected my account)? How can I configure GitHub Desktop to work with this proxy?
proxy github-for-windows github-desktop
New to working with git in Windows. I downloaded the GitHub Desktop application and can connect my account, but doing pushes/pulls fails because of an unresolved host. Asking around the workplace I got the following suggestion to type this command into the git shell.
git config --global http.proxy http://username:password@proxy.workplace.com:8080
Does this:
- Store my password in plain text?
- Send my password in plain text?
Doesn't GitHub for Desktop generate and use SSH keys instead (I got an email notification when I first connected my account)? How can I configure GitHub Desktop to work with this proxy?
proxy github-for-windows github-desktop
proxy github-for-windows github-desktop
asked Jul 27 '16 at 14:01
raphaelraphael
1,08621240
1,08621240
Similar to stackoverflow.com/questions/16153450/… but there's no answer for GitHub Desktop, and ssh specifically
– raphael
Jul 27 '16 at 14:01
add a comment |
Similar to stackoverflow.com/questions/16153450/… but there's no answer for GitHub Desktop, and ssh specifically
– raphael
Jul 27 '16 at 14:01
Similar to stackoverflow.com/questions/16153450/… but there's no answer for GitHub Desktop, and ssh specifically
– raphael
Jul 27 '16 at 14:01
Similar to stackoverflow.com/questions/16153450/… but there's no answer for GitHub Desktop, and ssh specifically
– raphael
Jul 27 '16 at 14:01
add a comment |
3 Answers
3
active
oldest
votes
To directly add a proxy to Github Desktop without using git shell:
Set up/Sign in to your account in Github Desktop(This won't be a problem, proxy only doesn't allow you to Add, create or clone repo)
Close Github Desktop for the time being(to set up proxy).
Go to
C:Users@yourusername
.There you will find a file named .gitconfig
Open it with any text editor(I have used sublime text 3) and add
[http]
proxy = http://username:password@your.proxy.address:8080
and save.
- Now you can add, create and clone repos in Github Desktop.
add a comment |
So actually the solution was to type this command into the git shell.
git config --global http.proxy http://<proxy-ip>:<proxy-port>
I was having an issue with proxy settings and github desktop - found out via the debug log that it was using its own git.exe not the one in my PATH env var. I had to run the above command using the fully qualified path for that specific exe - C:Usersuser.namAppDataLocalGitHubPortableGit_f02737a78695063deace08e96d5042710d3e32dbcmdgit.exe
– leinad13
May 2 '17 at 13:22
omg Hitesh thanks for fixing that typo O.O
– raphael
Nov 13 '18 at 16:32
add a comment |
It might work with this:
- git config --global http.proxy proxy_address:proxy_port
- git config --global https.proxy proxy_address:proxy_port
If username and password are not that much important then use:
- git config --global http.proxy username:password@proxy_address:proxy_port
- git config --global https.proxy username:password@proxy_address:proxy_port
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f38615168%2fhow-can-i-configure-github-desktop-windows-to-work-with-a-proxy%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
To directly add a proxy to Github Desktop without using git shell:
Set up/Sign in to your account in Github Desktop(This won't be a problem, proxy only doesn't allow you to Add, create or clone repo)
Close Github Desktop for the time being(to set up proxy).
Go to
C:Users@yourusername
.There you will find a file named .gitconfig
Open it with any text editor(I have used sublime text 3) and add
[http]
proxy = http://username:password@your.proxy.address:8080
and save.
- Now you can add, create and clone repos in Github Desktop.
add a comment |
To directly add a proxy to Github Desktop without using git shell:
Set up/Sign in to your account in Github Desktop(This won't be a problem, proxy only doesn't allow you to Add, create or clone repo)
Close Github Desktop for the time being(to set up proxy).
Go to
C:Users@yourusername
.There you will find a file named .gitconfig
Open it with any text editor(I have used sublime text 3) and add
[http]
proxy = http://username:password@your.proxy.address:8080
and save.
- Now you can add, create and clone repos in Github Desktop.
add a comment |
To directly add a proxy to Github Desktop without using git shell:
Set up/Sign in to your account in Github Desktop(This won't be a problem, proxy only doesn't allow you to Add, create or clone repo)
Close Github Desktop for the time being(to set up proxy).
Go to
C:Users@yourusername
.There you will find a file named .gitconfig
Open it with any text editor(I have used sublime text 3) and add
[http]
proxy = http://username:password@your.proxy.address:8080
and save.
- Now you can add, create and clone repos in Github Desktop.
To directly add a proxy to Github Desktop without using git shell:
Set up/Sign in to your account in Github Desktop(This won't be a problem, proxy only doesn't allow you to Add, create or clone repo)
Close Github Desktop for the time being(to set up proxy).
Go to
C:Users@yourusername
.There you will find a file named .gitconfig
Open it with any text editor(I have used sublime text 3) and add
[http]
proxy = http://username:password@your.proxy.address:8080
and save.
- Now you can add, create and clone repos in Github Desktop.
answered Jan 8 '18 at 8:25
Sayan MandalSayan Mandal
11016
11016
add a comment |
add a comment |
So actually the solution was to type this command into the git shell.
git config --global http.proxy http://<proxy-ip>:<proxy-port>
I was having an issue with proxy settings and github desktop - found out via the debug log that it was using its own git.exe not the one in my PATH env var. I had to run the above command using the fully qualified path for that specific exe - C:Usersuser.namAppDataLocalGitHubPortableGit_f02737a78695063deace08e96d5042710d3e32dbcmdgit.exe
– leinad13
May 2 '17 at 13:22
omg Hitesh thanks for fixing that typo O.O
– raphael
Nov 13 '18 at 16:32
add a comment |
So actually the solution was to type this command into the git shell.
git config --global http.proxy http://<proxy-ip>:<proxy-port>
I was having an issue with proxy settings and github desktop - found out via the debug log that it was using its own git.exe not the one in my PATH env var. I had to run the above command using the fully qualified path for that specific exe - C:Usersuser.namAppDataLocalGitHubPortableGit_f02737a78695063deace08e96d5042710d3e32dbcmdgit.exe
– leinad13
May 2 '17 at 13:22
omg Hitesh thanks for fixing that typo O.O
– raphael
Nov 13 '18 at 16:32
add a comment |
So actually the solution was to type this command into the git shell.
git config --global http.proxy http://<proxy-ip>:<proxy-port>
So actually the solution was to type this command into the git shell.
git config --global http.proxy http://<proxy-ip>:<proxy-port>
edited Nov 13 '18 at 15:08
Hitesh Sahu
14.4k97963
14.4k97963
answered Oct 6 '16 at 18:12
raphaelraphael
1,08621240
1,08621240
I was having an issue with proxy settings and github desktop - found out via the debug log that it was using its own git.exe not the one in my PATH env var. I had to run the above command using the fully qualified path for that specific exe - C:Usersuser.namAppDataLocalGitHubPortableGit_f02737a78695063deace08e96d5042710d3e32dbcmdgit.exe
– leinad13
May 2 '17 at 13:22
omg Hitesh thanks for fixing that typo O.O
– raphael
Nov 13 '18 at 16:32
add a comment |
I was having an issue with proxy settings and github desktop - found out via the debug log that it was using its own git.exe not the one in my PATH env var. I had to run the above command using the fully qualified path for that specific exe - C:Usersuser.namAppDataLocalGitHubPortableGit_f02737a78695063deace08e96d5042710d3e32dbcmdgit.exe
– leinad13
May 2 '17 at 13:22
omg Hitesh thanks for fixing that typo O.O
– raphael
Nov 13 '18 at 16:32
I was having an issue with proxy settings and github desktop - found out via the debug log that it was using its own git.exe not the one in my PATH env var. I had to run the above command using the fully qualified path for that specific exe - C:Usersuser.namAppDataLocalGitHubPortableGit_f02737a78695063deace08e96d5042710d3e32dbcmdgit.exe
– leinad13
May 2 '17 at 13:22
I was having an issue with proxy settings and github desktop - found out via the debug log that it was using its own git.exe not the one in my PATH env var. I had to run the above command using the fully qualified path for that specific exe - C:Usersuser.namAppDataLocalGitHubPortableGit_f02737a78695063deace08e96d5042710d3e32dbcmdgit.exe
– leinad13
May 2 '17 at 13:22
omg Hitesh thanks for fixing that typo O.O
– raphael
Nov 13 '18 at 16:32
omg Hitesh thanks for fixing that typo O.O
– raphael
Nov 13 '18 at 16:32
add a comment |
It might work with this:
- git config --global http.proxy proxy_address:proxy_port
- git config --global https.proxy proxy_address:proxy_port
If username and password are not that much important then use:
- git config --global http.proxy username:password@proxy_address:proxy_port
- git config --global https.proxy username:password@proxy_address:proxy_port
add a comment |
It might work with this:
- git config --global http.proxy proxy_address:proxy_port
- git config --global https.proxy proxy_address:proxy_port
If username and password are not that much important then use:
- git config --global http.proxy username:password@proxy_address:proxy_port
- git config --global https.proxy username:password@proxy_address:proxy_port
add a comment |
It might work with this:
- git config --global http.proxy proxy_address:proxy_port
- git config --global https.proxy proxy_address:proxy_port
If username and password are not that much important then use:
- git config --global http.proxy username:password@proxy_address:proxy_port
- git config --global https.proxy username:password@proxy_address:proxy_port
It might work with this:
- git config --global http.proxy proxy_address:proxy_port
- git config --global https.proxy proxy_address:proxy_port
If username and password are not that much important then use:
- git config --global http.proxy username:password@proxy_address:proxy_port
- git config --global https.proxy username:password@proxy_address:proxy_port
answered May 4 '17 at 13:10
deepankar nankanideepankar nankani
1
1
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f38615168%2fhow-can-i-configure-github-desktop-windows-to-work-with-a-proxy%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Similar to stackoverflow.com/questions/16153450/… but there's no answer for GitHub Desktop, and ssh specifically
– raphael
Jul 27 '16 at 14:01