Skip to content

Instantly share code, notes, and snippets.

@theffc
Last active December 19, 2024 02:14
Show Gist options
  • Save theffc/5d622e28fdd1759e5bb8 to your computer and use it in GitHub Desktop.
Save theffc/5d622e28fdd1759e5bb8 to your computer and use it in GitHub Desktop.
Como configurar o git para funcionar com um servidor proxy.

Ativar

Para fazer o git usar um servidor proxy, utilize o seguinte comando:

git config --global http.proxy http://YOUR_PROXY_USERNAME:[email protected]:8080

YOUR_PROXY_USERNAME => como é comum o uso de um email para o USERNAME, é necessário utilizar no lugar do @ do email, o seguinte código pwd%40123.

Desativar

git config --global --unset http.proxy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment