Hi,
I have a remote read-only git repository A
, which I have cloned in my local filesystem. A
is updated periodically, and I pull and merge the updated code in my system after each update.
I want to collaborate with my team members on the files of A
, for which, I have create a new remote repository B
.
How do I manage to sync B
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.
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.