title: Where is my git repository after pushing through an ssh tunnel?
body: <p>I've set my router at home to do port forwarding via SSH.  I've succesfully cloned git repositories via:</p>
  
  <pre><code>git clone git+ssh://user@localhost:1234/repos local_repos
  </code></pre>
  
  <p>and then working locally, I can <code>push</code> and <code>pull</code> without trouble.  </p>
  
  <p>Now I'm in the situation where I created a project locally and I want to put it on my home machine.  This is what I tried.  On the home machine:</p>
  
  <pre><code>cd &amp;&amp; mkdir new-project &amp;&amp; mkdir new-project/.git
  cd !$ &amp;&amp; git --bare init
  </code></pre>
  
  <p>On the local machine:</p>
  
  <pre><code>mkdir new-project &amp;&amp; cd new-project
  git init
  ... (add, commit etc.)
  git remote add origin origin git+ssh:/user@localhost:1234/home/user/new-project
  git push origin master --tags
  </code></pre>
  
  <p>After giving my credentials, it seems to work happily.  But if look on the home machine, I see nothing.  A <code>git status</code> in <code>/home/user/new-project</code> yields an error.  </p>
  
  <p>Question:  <strong>Where did my stuff get pushed too? (Or, what got pushed?)</strong><br>
  Secondly:  <strong>How can I achieve this when my tunnel is 'one way' so to speak?</strong></p>