Skip to main content

Clone repository with the same server user

Clone repository with the same server user

  • create new php file with this name it.php
<?php
exec('git clone   https://@github.com/{username}/{repository}.git');

 

after that  go to the command line and execute this command 

 php it.php
 

Tags