Closed trancongminh132 closed 3 years ago
Pass the path to your binary: https://github.com/cpliakas/git-wrapper/blob/master/src/GitWrapper.php#L59.
@GrahamCampbell Thank you. Also, how to pass this param:
$gitWrapper->setPrivateKey('');
What do you mean?
@GrahamCampbell I don't know how to set param to this method:
setPrivateKey
I just try to set like this
$gitWrapper->setPrivateKey('/var/www/.ssh/id_rsa');
But it doesn't work
What do you mean, "it doesn't work"?
@GrahamCampbell
debug2: no passphrase given, try next key
debug2: we did not send a packet, disable method
debug1: No more authentication methods to try.
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Error occured. I mean what value we need to set for setPrivateKey?
Hello I try to call
$gitWrapper = new GitWrapper();
It cause exception:GitWrapper \ Exception \ GitException Unable to find the Git executable.
Could you help me? Thank you!I run on laravel controller.