You can add several remote repositories in git using the command "git
remote add <alias> <url>". Then, when you want to push or pull from a
specific remote repository just use the alias that you used: git push
<alias> master, for example.

When you clone the repository from a specific url, this will be named
origin, So you only need to add the other remote repository.


William Seiti Mizuta
@williammizuta
Caelum | Ensino e Inovação
www.caelum.com.br


On Fri, Feb 8, 2013 at 7: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.
>
>
>

-- 
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