Difference between revisions of "Git notes"

From Simson Garfinkel
Jump to navigationJump to search
(Created page with "Setting up an intermediate repository: On the intermediate host: $ git clone --mirror git@remote://repo-name To pull from remote server: $ssh intermediate-host 'c...")
(No difference)

Revision as of 06:52, 2 March 2018

Setting up an intermediate repository:

On the intermediate host:

   $ git clone --mirror git@remote://repo-name

To pull from remote server:

   $ssh  intermediate-host 'cd mirror.git;git fetch origin;git push origin'

To sync to local one:

   $ git pull mirror; git push mirror