I need to use git commands in a php project.
Example :
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?
Thanks!