Created
September 24, 2012 21:58
-
-
Save alexandresalome/3778703 to your computer and use it in GitHub Desktop.
gitlib sample
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php require_once __DIR__.'/vendor/autoload.php'; | |
/** gitlib: http://gitonomy.com/doc/gitlib/master/ */ | |
$repo = Gitonomy\Git\Admin::init('/tmp/test', false); | |
$repo->run('remote', array('add', 'origin', 'https://github.com/gitonomy/gitlib.git')); | |
$repo->run('fetch', array('--all')); | |
$wc = $repo->getWorkingCopy(); | |
$wc->checkout('master'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here is doc : http://gitonomy.com/doc/gitlib/master/