You could always use Smart HTTP.
For read-only (git:) urls, install corkscrew.
-
Download git-proxy.sh. Put it somewhere and make it executable.
-
Run
git config --global core.gitproxy '/usr/local/bin/git-proxy.sh'
To clone, push, pull over ssh, add the contents of ssh_config to your ~/.ssh/config file.