I do something like that. The steps are rather easy. Basically you just add
the other remote using

git remote add

In order to set this up initially I do something like:

cd ~/projects
git clone http://github.org/some/new-project #fetch new-project from remote
cd /where/the/local/git
git init --bare --shared new-project.git
# make a bare, empty local master copy
cd ~/projects/new-project
git add remote local /where/the/local/git/new-project.git
git push --all local
#
# /where/the/local/git/new-project.git is now a copy of the remote git
# and is know to me as "local".

Other users can then clone from either the company master repository or
from the remote one. Which ever is proper for them. If they need both, then
do the "git clone" from the one that they want as to be known as "origin".
And then do the "git remote add" command to add in the other. The git
push/pull/fetch default to accessing whichever one is named "origin".

Hope this makes sense.



On Fri, Feb 8, 2013 at 3:53 PM, <adam.to...@gmail.com> wrote:

> Hi,
>
>
> I am new to Git.
>
> I want to be able to work with my main repository that has a fixed origin
> and at the same time want to be able to pull and push from a different
> repository.
>
> A typical use case would be a company that has local developers using the
> repository of the company, and an outsourcing company that has its own
> repository.
>
> The local developer has access to both repositories.
>
> Can you tell me what are the steps needed to get this setup?
>
> A link explaining that in detail would help too.
>
>
> Thank you
>
> --
> You received this message because you are subscribed to the Google Groups
> "Git for human beings" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to git-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>



-- 
This is a test of the Emergency Broadcast System. If this had been an
actual emergency, do you really think we'd stick around to tell you?

Maranatha! <><
John McKown

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to