Wednesday 24 August 2011

How to do a git clone through a NTLM proxy

I've already set up CTNLM - http://cntlm.sourceforge.net/ - and have
already used it with Ruby gems yesterday, so I definitely know it's
working. We now have to configure GIT so it uses this proxy (running
on localhost:3128 by default)

>git config --global http.proxy localhost:3128

I've been looking at how to use workflows in Ruby on Rails recently,
and came across this project:

http://openwferu.rubyforge.org/

And the install instructions are here:
http://openwferu.rubyforge.org/quickstart.html

But looks like the GIT protocol can't be used through our proxy,
because if we try it we get this:

>git clone git://github.com/jmettraux/ruote.git
Cloning into ruote...
fatal: Unable to look up github.com (port 9418) (No such host is known. )


So replace git:// with http:// and see if we can do a git clone

>git clone http://github.com/jmettraux/ruote.git
Cloning into ruote...
remote: Counting objects: 22048, done.
remote: Compressing objects: 100% (5796/5796), done.
remote: Total 22048 (delta 16305), reused 21864 (delta 16134)Receiving objects:

Receiving objects: 100% (22048/22048), 4.04 MiB | 304 KiB/s, done.
Resolving deltas: 100% (16305/16305), done.


Yay, it works!!

No comments: