{"thread":{"id":"60381","subject":"Proxy Flag for git-clone, push, pull","startedAt":"2023-10-17T05:15:32Z","lastAt":"2023-10-17T05:19:40Z","messageCount":2,"participants":["Jaydeep Das","Eric Sunshine"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"483329","messageId":"CACaPSotRhyFZ-eBZ9KNKRUjLFHKo09P-Un+sitDXEktzmwuaxA@mail.gmail.com","threadId":"60381","inReplyTo":null,"subject":"Proxy Flag for git-clone, push, pull","fromName":"Jaydeep Das","fromEmail":"jaydeepjd.8914@gmail.com","sentAt":"2023-10-17T05:15:17Z","receivedAt":"2023-10-17T05:15:32Z","isPatch":false,"sender":{"key":"jaydeepjd.8914@gmail.com","avatar":"https://avatars.githubusercontent.com/u/64089730?v=4"},"body":"To make git work through proxy, we need to set the `http.proxy` config\nor need to set `http_proxy` environment variable.\n\nHowever wouldn't it be better if there was a flag in the command\nitself (like npm) which\noverrides whatever proxy is set. Something like\n\ngit clone --proxy \"http://...\" <url>\n"},{"id":"483330","messageId":"CAPig+cR8-s3bGCw6qF12Bcxuy4vB8Gh9H5jTb_r3pUu1LK35-g@mail.gmail.com","threadId":"60381","inReplyTo":"CACaPSotRhyFZ-eBZ9KNKRUjLFHKo09P-Un+sitDXEktzmwuaxA@mail.gmail.com","subject":"Re: Proxy Flag for git-clone, push, pull","fromName":"Eric Sunshine","fromEmail":"sunshine@sunshineco.com","sentAt":"2023-10-17T05:19:26Z","receivedAt":"2023-10-17T05:19:40Z","isPatch":false,"sender":{"key":"sunshine@sunshineco.com","avatar":"https://avatars.githubusercontent.com/u/163641?v=4"},"body":"On Tue, Oct 17, 2023 at 1:15 AM Jaydeep Das <jaydeepjd.8914@gmail.com> wrote:\n> To make git work through proxy, we need to set the `http.proxy` config\n> or need to set `http_proxy` environment variable.\n>\n> However wouldn't it be better if there was a flag in the command\n> itself (like npm) which\n> overrides whatever proxy is set. Something like\n>\n> git clone --proxy \"http://...\" <url>\n\nThe -c option allows you to specify configuration on the command-line, so:\n\n    git -c http.proxy=\"http://...\" clone <url>\n\nshould do what you want.\n"}]}