How Can I Configure GitHub Desktop/Windows to Work with a Proxy?












5















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:




  1. Store my password in plain text?

  2. 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?










share|improve this question























  • Similar to stackoverflow.com/questions/16153450/… but there's no answer for GitHub Desktop, and ssh specifically

    – raphael
    Jul 27 '16 at 14:01
















5















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:




  1. Store my password in plain text?

  2. 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?










share|improve this question























  • Similar to stackoverflow.com/questions/16153450/… but there's no answer for GitHub Desktop, and ssh specifically

    – raphael
    Jul 27 '16 at 14:01














5












5








5


2






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:




  1. Store my password in plain text?

  2. 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?










share|improve this question














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:




  1. Store my password in plain text?

  2. 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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










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



















  • 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












3 Answers
3






active

oldest

votes


















9














To directly add a proxy to Github Desktop without using git shell:




  1. 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)


  2. Close Github Desktop for the time being(to set up proxy).


  3. Go to C:Users@yourusername.


  4. There you will find a file named .gitconfig


  5. 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.




  1. Now you can add, create and clone repos in Github Desktop.






share|improve this answer































    9














    So actually the solution was to type this command into the git shell.



    git config --global http.proxy http://<proxy-ip>:<proxy-port>





    share|improve this answer


























    • 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



















    0














    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






    share|improve this answer























      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
      });


      }
      });














      draft saved

      draft discarded


















      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









      9














      To directly add a proxy to Github Desktop without using git shell:




      1. 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)


      2. Close Github Desktop for the time being(to set up proxy).


      3. Go to C:Users@yourusername.


      4. There you will find a file named .gitconfig


      5. 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.




      1. Now you can add, create and clone repos in Github Desktop.






      share|improve this answer




























        9














        To directly add a proxy to Github Desktop without using git shell:




        1. 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)


        2. Close Github Desktop for the time being(to set up proxy).


        3. Go to C:Users@yourusername.


        4. There you will find a file named .gitconfig


        5. 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.




        1. Now you can add, create and clone repos in Github Desktop.






        share|improve this answer


























          9












          9








          9







          To directly add a proxy to Github Desktop without using git shell:




          1. 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)


          2. Close Github Desktop for the time being(to set up proxy).


          3. Go to C:Users@yourusername.


          4. There you will find a file named .gitconfig


          5. 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.




          1. Now you can add, create and clone repos in Github Desktop.






          share|improve this answer













          To directly add a proxy to Github Desktop without using git shell:




          1. 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)


          2. Close Github Desktop for the time being(to set up proxy).


          3. Go to C:Users@yourusername.


          4. There you will find a file named .gitconfig


          5. 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.




          1. Now you can add, create and clone repos in Github Desktop.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jan 8 '18 at 8:25









          Sayan MandalSayan Mandal

          11016




          11016

























              9














              So actually the solution was to type this command into the git shell.



              git config --global http.proxy http://<proxy-ip>:<proxy-port>





              share|improve this answer


























              • 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
















              9














              So actually the solution was to type this command into the git shell.



              git config --global http.proxy http://<proxy-ip>:<proxy-port>





              share|improve this answer


























              • 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














              9












              9








              9







              So actually the solution was to type this command into the git shell.



              git config --global http.proxy http://<proxy-ip>:<proxy-port>





              share|improve this answer















              So actually the solution was to type this command into the git shell.



              git config --global http.proxy http://<proxy-ip>:<proxy-port>






              share|improve this answer














              share|improve this answer



              share|improve this answer








              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



















              • 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











              0














              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






              share|improve this answer




























                0














                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






                share|improve this answer


























                  0












                  0








                  0







                  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






                  share|improve this answer













                  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







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered May 4 '17 at 13:10









                  deepankar nankanideepankar nankani

                  1




                  1






























                      draft saved

                      draft discarded




















































                      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.




                      draft saved


                      draft discarded














                      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





















































                      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







                      Popular posts from this blog

                      Full-time equivalent

                      さくらももこ

                      13 indicted, 8 arrested in Calif. drug cartel investigation