簡體   English   中英

php、shell 和 git 克隆

[英]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");

設置用戶名和密碼?

你試過了嗎

shell_exec("git clone https://username:password@github.com/username/repo.git");

資源

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM