title: Git: how to work with multiple repositories?
body: <p>I have a remote read-only git repository <code>A</code>, which I have cloned in my local filesystem. <code>A</code> is updated periodically, and I pull and merge the updated code in my system after each update.</p>
  
  <p>I want to collaborate with my team members on the files of <code>A</code>, for which, I have create a new remote repository <code>B</code>.</p>
  
  <p>How do I manage to sync <code>B</code> with my local repository? I would like to learn the proper command sequence and configuration options to achieve my goals. Here are the scenarios I would like to be able to solve:
  1. Pull from A after there are updates, push it to B.
  2. Pull from A, merge it with my local files, then push it to B, merging with the repo on B.
  3. I would like all of A, my local repo and B to have identical branches.</p>
  
  <p>I would be thankful for any help.
  If my question is not very clear, please mention it, and I will try to edit it.
  Thanks.</p>