Osx: Set Brew behind proxy server

First, set up http and https proxy server for Brew:

http_proxy=https://user:password@proxy:port https_proxy=https://user:password@proxy:port brew install PACKAGE

Then, set up proxy for Git, used by Brew.

git config --global http.proxy https://user:password@proxy:port

To reset configuration to its initial values:

git config --global --unset http.proxy

Leave a Reply

Your email address will not be published. Required fields are marked *