Synchronizes Git repositories.

1.0.0-beta3 2013-03-07 05:34 UTC

This package is auto-updated.

Last update: 2024-04-25 11:07:00 UTC


GitSync is a PHP library that synchronizes a source repository to a destination repository. This project integrates with the Git Wrapper library.


This example mirrors the Git Wrapper repository into a local repository that was initialized with git init --bare /var/git/mirror/git-wrapper.

use GitWrapper\GitWrapper;
use GitSync\GitMirror;

require_once 'vendor/autoload.php';

$wrapper = new GitWrapper();
$git = $wrapper->workingCopy('./working-copy');

$mirror = new GitMirror($git, 'git://github.com/cpliakas/git-wrapper.git');