[英]php, shell and git clone
這是克隆 git 私有存儲庫的可能性:
$ git clone https://github.com/username/repo.git
Username: your_username #the username
Password: your_token #the string that can be found by generating here https://github.com/settings/tokens
如何在 php 中使用
shell_exec("git clone https://github.com/username/repo.git");
設置用戶名和密碼?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.