[英]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.