title: Can git work via ssh port forwarding?
body: <p>My situation is, I can ssh to ComputerB (Code repos) where git repos is put. But my local
  connection is too slow to clone the code. And I can ssh to another machine (ComputerA)
  which is faster, so I want to clone the code through ComputerA.</p>
  
  <p>This is what I did:</p>
  
  <pre><code>           ssh tunnel                           ssh tunnel
  MyComputer ----------&gt; ComputerA (I can ssh to) ----------&gt; ComputerB (where the Code repos is and I can ssh to but too slow)
  </code></pre>
  
  <p>Using a command like this:</p>
  
  <pre><code>ssh -L1234:ComputerA_ip:22 Code_repos_ip
  </code></pre>
  
  <p>Then:</p>
  
  <pre><code>git clone git+ssh//localhost/repos local_repos (how can I assign the port 1234?)
  </code></pre>
  
  <p>If this doesn't work, what else can I do?</p>