Created
June 25, 2014 20:54
-
-
Save viniciusss/f0822d64ca5465fc5605 to your computer and use it in GitHub Desktop.
git php windows
This file contains hidden or 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 | |
include 'lib/SplClassLoader.php' ; | |
$classLoader = new SplClassLoader ( 'Symfony' , 'lib' ) ; | |
$classLoader -> register () ; | |
$classLoader = new SplClassLoader ( 'PHPGit' , 'lib' ) ; | |
$classLoader -> register (); | |
$git = new PHPGit\Git(); | |
$git->setRepository(__DIR__); | |
$git->config->set('user.email', '[email protected]'); | |
$git->config->set('user.name', 'Teste'); | |
$myGit = substr(`where git`, 0, -5); | |
$git->setBin($myGit); | |
var_dump($git->pull('origin', 'offline')); | |
exit; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment