Skip to content

Instantly share code, notes, and snippets.

@hatamiarash7
Last active June 8, 2018 09:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hatamiarash7/0ebb543fb45a5af9c25b57f7d1f35cce to your computer and use it in GitHub Desktop.
Save hatamiarash7/0ebb543fb45a5af9c25b57f7d1f35cce to your computer and use it in GitHub Desktop.
Configure Git to use a proxy
  1. Define proxy in .gitconfig ( You can find it by run this command : git config --list --global --show-origin )

    [http]
        proxy = http://username:password@proxydomain:port
        sslverify = false
    [https]
        proxy = http://username:password@proxydomain:port
        sslverify = false
    
  2. Use environment variable

    set http_proxy=http://username:password@proxydomain:port
    set https_proxy=http://username:password@proxydomain:port
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment