Skip to content

Instantly share code, notes, and snippets.

@toast38coza
Created January 15, 2015 15:11
Show Gist options
  • Save toast38coza/f8b5db21aac19e492967 to your computer and use it in GitHub Desktop.
Save toast38coza/f8b5db21aac19e492967 to your computer and use it in GitHub Desktop.
Cloning a repo from github through a corporate proxy with username and password
export http_proxy=http://username:[email protected]:80
export https_proxy=http://username:[email protected]:80
[http]
proxy = http://username:[email protected]:80
[https]
proxy = https://username:[email protected]:80
[user]
name = Joe Soap
email = [email protected]
# note: use the https clone (because your proxy will likely block port 20)
git clone https://user:[email protected]/yourgithubusername/reponame.git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment