First thing to do is install the corkscrew SSH tunneling tool.
Edit the ~/.ssh/config file...
# ~/.ssh/config
Host gitproxy
Hostname ssh.github.com
Port 443
ProxyCommand /usr/local/bin/corkscrew PROXYHOST PROXYPORT %h %p
Test it with...
# ssh -v -v gitproxy
Git commands should now refer to the "gitproxy" name. In an already existing git repo you cad edit the .git/config file like so.....
# PROJECTHOME/.git/config
....
[remote "origin"]
url = git@gitproxy:GITUSERNAME/PROJECTNAME.git
....
No comments:
Post a Comment