Reputation: 11047
I have one local git repository set up for our team. There is another git repository set up for a remote team( they are some freelancers ). My problem is I want to sync the live server code in which the freelancers are making changes, with my local git and push the latest code to server. How can I do that?
Upvotes: 1
Views: 661
Reputation: 14089
You should add the freelancers repository as "remote" then git fetch
from it to your local repository. Then you can merge the references from the freelancers to the work from your core team and push to the work to their repository.
For example something like this :
git remote add team {githubofteam}
git remote add free {githuboffreelancers}
git fetch team
git checkout -b master team/master
git fetch free
git merge free/master
git push team master
Upvotes: 5