cpliakas / git-sync
Synchronizes Git repositories.
Installs: 40
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 1
Forks: 1
Open Issues: 0
pkg:composer/cpliakas/git-sync
Requires
- php: >=5.3.0
- cpliakas/git-wrapper: 1.0.0-RC1
This package is auto-updated.
Last update: 2025-09-25 14:19:08 UTC
README
GitSync is a PHP library that synchronizes a source repository to a destination repository. This project integrates with the Git Wrapper library.
Usage
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'); $mirror->sync('file:///var/git/mirror/git-wrapper');