Skip to content

Instantly share code, notes, and snippets.

@xparta
Last active October 5, 2015 08:19
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xparta/5fc5aea660919dc6b4b7 to your computer and use it in GitHub Desktop.
Save xparta/5fc5aea660919dc6b4b7 to your computer and use it in GitHub Desktop.
how do i clone from behind a firewall
fatal: unable to access 'https://github.com/angular/angular-phonecat.git/': Could not resolve proxy: http
@xparta
Copy link
Author

xparta commented Jul 22, 2015

labtest@labtest-HP-Pro-3400-Series-MT:~/Desktop/railsproject/gittest$ git clone https://github.com/angular/angular-phonecat.git
Cloning into 'angular-phonecat'...
fatal: unable to access 'https://github.com/angular/angular-phonecat.git/': Could not resolve proxy: http

@xparta
Copy link
Author

xparta commented Jul 22, 2015

this is from my .gitconfig file
[http]
[https]
proxy = https://172.20.255.254:8080
[user]
email = tomarobaski@gmail.com
name = xparta
[http]
proxy = http:labtest:user123
proxy = http://labtest:user123@http

@xparta
Copy link
Author

xparta commented Jul 22, 2015

GOT THE SOLUTION .. woooooahahhahahaha

git config --global http.proxy http://userpass@172.20.255.254:8080
git config --global ftp.proxy http://userpass@172.20.255.254:8080

git config --global https.proxy http://userpass@172.20.255.254:8080

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