two-way sync; from firewalled host

3 messages, 2 authors, 2016-06-15 · open the first message on its own page

two-way sync; from firewalled host

From: Yakov Lerner <hidden>
Date: 2016-06-15 22:42:50

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

Re: two-way sync; from firewalled host

From: Jakub Narebski <hidden>
Date: 2016-06-15 22:42:51

Yakov Lerner wrote:
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).
You can on host C pull from host S, and on host C push to host S.
-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git

Re: two-way sync; from firewalled host

From: Jakub Narebski <hidden>
Date: 2016-06-15 22:42:52

[Cc: git@vger.kernel.org]

Jakub Narebski wrote:
Yakov Lerner wrote:
quoted
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).
You can on host C pull from host S, and on host C push to host S.
See post by Junio explaining how to setup this:
    
  Message-ID: [off-list ref]
  http://permalink.gmane.org/gmane.comp.version-control.git/38549

-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help