簡體   English   中英

Git克隆http用密碼

[英]Git clone http with password

我試圖通過http克隆一個私人git存儲庫。 這里有一個類似的問題: Git克隆使用http與用戶和密碼

有沒有辦法在沒有輸入用戶/密碼的情況下進行git clone?

當我嘗試做的時候:

prodroom15:mquimiro$ git clone https://github.com/user:password/Automator.git
Cloning into 'Automator'...
Username for 'https://github.com': 
Password for 'https://github.com': 

我該如何做到這一點,以便我不必手動輸入用戶名/密碼?

請注意,執行正常的https://github.com/user/Automator.git並在提示符下手動輸入用戶/密碼正常。

我認為語法實際上是https://user:password@github.com而不是https://github.com/user:password

如果您使用的是Git 1.7.9或更高版本,請考慮使用更安全的憑據幫助程序機制

暫無
暫無

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

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