Skip to content

cpliakas/git-sync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

Overview

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');

About

Synchronizes Git repositories.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Languages