Proxy Flag for git-clone, push, pull
- From
Jaydeep Das <jaydeepjd.8914@gmail.com>
- Date
- Oct 17, 2023, 05:15 UTC
- Message-ID
- <CACaPSotRhyFZ-eBZ9KNKRUjLFHKo09P-Un+sitDXEktzmwuaxA@mail.gmail.com>
To make git work through proxy, we need to set the `http.proxy` config or need to set `http_proxy` environment variable.
However wouldn't it be better if there was a flag in the command itself (like npm) which overrides whatever proxy is set. Something like
git clone --proxy "http://..." <url>