Skip to content

Instantly share code, notes, and snippets.

@matsuda
Created January 12, 2011 07:03
Show Gist options
  • Save matsuda/775798 to your computer and use it in GitHub Desktop.
Save matsuda/775798 to your computer and use it in GitHub Desktop.
git clone with port forwarding
# ポートフォワード
$ ssh -L 10000:remote.host.com:22 gate.com -p 11122
# clone
$ git clone git+ssh://git@localhost:10000/repo/project.git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment