title: What is a simple way to Git Push to another machine?
body: <p>I thought I can do the following:</p>
  
  <pre><code>machine1 $ cd /
             mkdir try-git
             cd try-git
             git init
  
  machine2 $ git push ssh://loginname@192.168.1.123//try-git master
  </code></pre>
  
  <p>and that's it?  <code>machine1</code> will have all the files then? (<code>machine2</code>'s current directory is a git repo).   But on <code>machine2</code>, I keep on having <code>git-receive-pack: command not found</code>, but both machines have the latest Git 1.7.4 installed...</p>
  
  <hr>
  
  <p><strong>update:</strong> seems like I need to add</p>
  
  <pre><code>PATH=$PATH:/usr/local/git/bin
  </code></pre>
  
  <p>to both machine's <code>.bashrc</code></p>
  
  <p>but why and won't invoking bash add more and more path to it.</p>