title: "git push" doing the same as "git fetch" from the remote
body: <p>My question is the same as <a href="https://stackoverflow.com/questions/2144866/git-push-to-a-remote-tracking-branch-in-the-remote-repository">this one</a>, but the answer is not clear to me.
  I have two git repos A and B in sync (corresponding to the two machines I work on). When I start working in B, I would normally do <code>git fetch A</code> (assuming the remote A in B points to repo A).
  But I want instead being able to push from A to the remote branch A inside B whenever I work in A. I want to be sure that it is safe, because of the warnings concerning pushing to a non-bare repo. My settings (in file A/.git/config) would be:</p>
  
  <pre><code>[remote "B"]
  fetch = +refs/heads/*:refs/remotes/B/*
  push =  +refs/heads/*:refs/remotes/A/*
  url = ssh://&lt;machine_B&gt;/home/project/B
  </code></pre>
  
  <p>With this setting, do I get <em>exactly</em> the same result with this two commands? :</p>
  
  <ul>
  <li>in A: <code>git push B</code></li>
  <li>in B: <code>git fetch A</code></li>
  </ul>