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

two-way sync; from firewalled host

From
YLYakov Lerner <iler.ml@gmail.com>
Date
Jan 25, 2007, 11:31 UTC
Message-ID
<f36b08ee0701250331u10c6a608qcbbb3001a0481e@mail.gmail.com>

I have two hosts, host C which is firewalled (no sshd), and host S which has sshd and is not firewalled. Both have clone of the same repo, modified locally and differently on both hosts.

I need to two-way sync them by running commands on C (the firewalled one).
I need a script that does it, the "git-sync" script, running on C.
              git-sync  user@host:path  [local-dir]   # synchronize
local repo with
                                                                   #
remote repo via ssh
If there are no conflicts, I need to bring both repos to same state (even if
their history will be different). If there are conflicts, I need to
synchronize everything
that is not in conflict, and report the list of conflicted files, and leave
the remote version as  './file.SUFFIX'  on host C, where script was invoked.

Thanks Yakov

Next: Jakub Narebski
Message 1 of 3 in “two-way sync; from firewalled host”
  1. Yakov LernerJan 25, 2007
  2. Jakub NarebskiFeb 1, 2007
  3. Jakub NarebskiFeb 3, 2007

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.