use git commands in exec() php functionGet the solution ↓↓↓
I need to use git commands in a php project.
exec('git clone <repo>');
The problem is that the command (used via an exec()) asks for my username and password. Which I don't have to enter when I run the command in a shell since I am using an ssh key.
I guess the problem appear because www-data does not know or does not have access to my ssh key?
Do you know any solution for that problem?
Share solution ↓
Link To Answer People are also looking for solutions of the problem: xml parsing error: no root element found
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.