Skip to content

Instantly share code, notes, and snippets.

@mephissto
mephissto / git_proxy_functions.sh
Created November 16, 2016 15:38 — forked from garystafford/git_proxy_functions.sh
Gist for blog post 'Easy Configuration of Git for Windows on a Corporate Network'.Easily turn proxy-related settings on and off for Git for Windows.1) Add these functions to your ~\.bashrc file, 2) Change PASSWORD, PROXY_SERVER, and PROXY_PORT default values, 3) Open new Git Bash interactive shell window and execute function before using git: pr…
# updated version here: https://gist.github.com/garystafford/8196920
# loosely based on post from ArchWiki and Alan Pope
# https://wiki.archlinux.org/index.php/proxy_settings
# this is alternative to git config
# configure proxy for git while on corporate network
function proxy_on(){
read -s -p "Enter Password: " PASSWORD
export PROXY_SERVER=my_proxy