-
-
Notifications
You must be signed in to change notification settings - Fork 108
How do I get Output? #68
Answered
by
janpecha
randy-johnson
asked this question in
Q&A
-
Do I have to do anything special to see the output of the commands I run. I don't see any output unless there was a fatal exception. Once I got everything worked any output stopped. The only way I know something worked is by checking the files.
Here is my code:
<?php
require __DIR__ . '/vendor/autoload.php';
// create repo object
$repo = new Cz\Git\GitRepository('/home/test_repo/public_html');
$repo->pull('origin');
$repo->checkout('first-draft');
Beta Was this translation helpful? Give feedback.
All reactions
Answered by
janpecha
Apr 11, 2020
Hello, you can use execute():
$output = $repo->execute('pull origin');
Currently there is no other way.
Replies: 1 comment
-
Hello, you can use execute():
$output = $repo->execute('pull origin');
Currently there is no other way.
Beta Was this translation helpful? Give feedback.
All reactions
0 replies
Answer selected by
janpecha
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment