Answer the question
In order to leave comments, you need to log in
How to clone a git repository from php over ssh?
OS: Windows
Downloaded https://git-scm.com/download/win so that you can work with Git via cmd.
My project creates a folder and I need to clone the repository into it via PHP. I do it with code like this:
$query = 'git clone ssh://[email protected]*************.git G://**********************';
$tmp = exec($query);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question