Skip to content

Instantly share code, notes, and snippets.

@icantrap
Created October 26, 2010 20:25

Revisions

  1. icantrap revised this gist Oct 26, 2010. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.mkd
    Original file line number Diff line number Diff line change
    @@ -4,6 +4,6 @@ For read-only (git:) urls, install [corkscrew](http://www.agroman.net/corkscrew/

    1. Download git-proxy.sh. Put it somewhere and make it executable.

    2. Run `git config --global core.gitproxy '/usr/local/bin/git-proxy'`
    2. 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.
  2. icantrap revised this gist Oct 26, 2010. 2 changed files with 3 additions and 3 deletions.
    2 changes: 1 addition & 1 deletion git-proxy.sh
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,3 @@
    #!/bin/bash

    exec corkscrew 10.241.32.28 8080 $*
    exec corkscrew 10.10.10.10 8080 $*
    4 changes: 2 additions & 2 deletions ssh_config
    Original file line number Diff line number Diff line change
    @@ -1,9 +1,9 @@
    Host gitorious.org
    Hostname ssh.gitorious.org
    Port 443
    ProxyCommand corkscrew 10.241.32.28 8080 %h %p
    ProxyCommand corkscrew 10.10.10.10 8080 %h %p

    Host github.com
    Hostname ssh.github.com
    Port 443
    ProxyCommand corkscrew 10.241.32.28 8080 %h %p
    ProxyCommand corkscrew 10.10.10.10 8080 %h %p
  3. icantrap revised this gist Oct 26, 2010. 1 changed file with 3 additions and 5 deletions.
    8 changes: 3 additions & 5 deletions gistfile1.mkd
    Original file line number Diff line number Diff line change
    @@ -1,11 +1,9 @@
    You could always use [Smart HTTP](http://github.com/blog/642-smart-http-support).

    For read-only (git:) urls ...
    For read-only (git:) urls, install [corkscrew](http://www.agroman.net/corkscrew/).

    Install [corkscrew](http://www.agroman.net/corkscrew/).
    1. Download git-proxy.sh. Put it somewhere and make it executable.

    Download git-proxy.sh. Put it somewhere and make it executable.

    Run `git config --global core.gitproxy '/usr/local/bin/git-proxy'`
    2. Run `git config --global core.gitproxy '/usr/local/bin/git-proxy'`

    To clone, push, pull over ssh, add the contents of ssh_config to your ~/.ssh/config file.
  4. icantrap created this gist Oct 26, 2010.
    11 changes: 11 additions & 0 deletions gistfile1.mkd
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    You could always use [Smart HTTP](http://github.com/blog/642-smart-http-support).

    For read-only (git:) urls ...

    Install [corkscrew](http://www.agroman.net/corkscrew/).

    Download git-proxy.sh. Put it somewhere and make it executable.

    Run `git config --global core.gitproxy '/usr/local/bin/git-proxy'`

    To clone, push, pull over ssh, add the contents of ssh_config to your ~/.ssh/config file.
    3 changes: 3 additions & 0 deletions git-proxy.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    #!/bin/bash

    exec corkscrew 10.241.32.28 8080 $*
    9 changes: 9 additions & 0 deletions ssh_config
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    Host gitorious.org
    Hostname ssh.gitorious.org
    Port 443
    ProxyCommand corkscrew 10.241.32.28 8080 %h %p

    Host github.com
    Hostname ssh.github.com
    Port 443
    ProxyCommand corkscrew 10.241.32.28 8080 %h %p