Git / Bower Errors: Exit Code # 128 & Failed connect
Instead to run this command:
git ls-remote --tags --heads git://github.com/twbs/bootstrap.git
you should run this command:
git ls-remote --tags --heads git@github.com:twbs/bootstrap.git
or
git ls-remote --tags --heads https://github.com/twbs/bootstrap.git
or you can run git ls-remote --tags --heads git://github.com/twbs/bootstrap.git
but you need to make git always use https in this way:
git config --global url."https://".insteadOf git://
Reference: https://github.com/bower/bower/issues/50
I came across this with my corporate network.
It seemed strange because I've always been using ssh to connect with git and never had an issue.
I tried https and didn't work so I added proxy settings to git's config and all was well
git config --global http.proxy http://proxyuser:proxypwd@proxy.server.com:8080git config --global https.proxy https://proxyuser:proxypwd@proxy.server.com:8080
And making sure it worked
git config --list