Thank for the suggestions, the fake remote 'all' did the trick for me.

//M.

On Apr 16, 7:10 pm, gitster <jch2...@gmail.com> wrote:
> On Apr 15, 11:45 pm, Broc <amas...@gmail.com> wrote:
>
> >  it goes out to both repos instead of having to do:
> >  $ git push
> >  $ git push assembla
>
> > I've read in the docs that you can add the remote as a mirror using --
> > mirror, but AFAIK this is only for new repos - is this correct, am I
> > missing something here?
>
> The --mirror option is about the layout (i.e. instead of pushing the
> matching refs to the remote, you push all your refs to the remote and
> remove refs that you do not have from the remote) and does not have
> anything to do with pushing to multiple places.
>
> But you can define a phony remote "all" that has more than one URL,
> like
> so:
>
>         [remote "all"]
>                 url = main.host.xz:my.git
>                 url = secondary.host.xz:my.git
>
> and say (with or without --mirror)
>
>         $ git push all
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To post to this group, send email to git-users@googlegroups.com
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to