Re: More help needed on merging unrelated repos

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Christian MICHON wrote:
Hi,

I previously posted here a question on how to merge unrelated repos,
and I was quite happy with the answer.
git pull repo_name repo_branch

Yet, when I merge these repos (they're unrelated), I'd like to merge
all of them at once.

How do I pull for example 2 repos in 1 command ? I cannot figure out
the exact syntax to use.

I tried:
git pull ../i1 0.5 ../i2 master
git pull ../i1 0.5 -- ../i2 master

I also tried to play with --no-commit and -s to no avail.

Does anyone of you already use this and knows the trick ? Thanks in advance!


You can only pull from a single repository at a time. The first way of doing
what you want that comes to mind is:

 git remote add lib1 lib1url
 git remote add lib2 lib2url
 git fetch lib1 && git fetch lib2 && git merge lib1/master lib2/master

--
Andreas Ericsson                   andreas.ericsson@xxxxxx
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux