git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Help merging two repo without connection

From
PHPeter Harris <git@peter.is-a-geek.org>
Date
Nov 16, 2008, 15:33 UTC
Message-ID
<eaa105840811160733s18be2705l60806b1bf40b1743@mail.gmail.com>
In-Reply-To
<AB681AEE-D229-4F1C-8D7B-8E60E0ED8E96@web.de>
On Sun, Nov 16, 2008 at 9:59 AM, Luca Siciliano Viglieri wrote:
> Hi,
> i'm trying to keep synched two repositories without always having a  direct
> connection.
...
Show 11 quoted lines
> I don't thinks its right to have double (or more?) commits. I would have
> expected something like:
>
>
> -- (first commit) -- (second commit)  -- (my patch)--(my second patch)  --
>  (merge?) --
>
>
> The patches were created with git-format-patch and merged with git-am.
> I know that the commits have different sha1 but how can i keep with patches
> or something similar the two repositories exactly synched?

If you use "git bundle" instead of format-patch, you will have an unreadable binary blob instead of a human-readable patch, but the sha1s will not change (since the commiter information will be the same). The remote side will "git pull" the bundle file instead of "git am"ing it.

Peter Harris
Previous: Sverre Rabbelier
Message 3 of 3 in “Help merging two repo without connection”
  1. Luca Siciliano ViglieriNov 16, 2008
  2. Sverre RabbelierNov 16, 2008
  3. Peter HarrisNov 16, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.