Skip to content

Instantly share code, notes, and snippets.

@toast38coza
Created January 15, 2015 15:11
Show Gist options
  • Select an option

  • Save toast38coza/f8b5db21aac19e492967 to your computer and use it in GitHub Desktop.

Select an option

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:password@mycompany.proxy.com:80
export https_proxy=http://username:password@mycompany.proxy.com:80
[http]
proxy = http://username:password@mycompany.proxy.com:80
[https]
proxy = https://username:password@mycompany.proxy.com:80
[user]
name = Joe Soap
email = joe@example.com
# note: use the https clone (because your proxy will likely block port 20)
git clone https://user:password@github.com/yourgithubusername/reponame.git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment