13
我想通過http克隆私人git存儲庫。這裏有一個類似的問題:Git clone using http with user and password。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
和手動輸入在提示符下的用戶/密碼工作正常。
謝謝,案件是顛倒語法。 – David542
只是一個快速的不完整的網址然後會是這樣的'https:// user:password @ github.com/user/myrepo.git' – Sverre