Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How do I get Output? #68

Answered by janpecha
randy-johnson asked this question in Q&A
Discussion options

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');
You must be logged in to vote

Hello, you can use execute():

$output = $repo->execute('pull origin');

Currently there is no other way.

Replies: 1 comment

Comment options

Hello, you can use execute():

$output = $repo->execute('pull origin');

Currently there is no other way.

You must be logged in to vote
0 replies
Answer selected by janpecha
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
Converted from issue

This discussion was converted from issue #53 on April 29, 2021 18:21.

AltStyle によって変換されたページ (->オリジナル) /