1
我使用gitflow創建一個新的版本,但在最後一步時,推到遙控器上gitlab我收到此錯誤信息:廣東話創建與源代碼樹的git流體釋放
fatal: could not read Username for 'https://gitlab.local': Device not configured
不知道爲什麼,它可能與gitlab上的一些設置有關嗎?
我使用gitflow創建一個新的版本,但在最後一步時,推到遙控器上gitlab我收到此錯誤信息:廣東話創建與源代碼樹的git流體釋放
fatal: could not read Username for 'https://gitlab.local': Device not configured
不知道爲什麼,它可能與gitlab上的一些設置有關嗎?
您可以:
嵌入您的用戶名在URL
git remote set-url origin https://{username}@gitlab.local
,並使用credential helper緩存密碼。
我喜歡與動態配置的遠程URL變化:
git config url."https://{username}@gitlab.local/".insteadOf https://gitlab.local/
git config url."ssh://[email protected]/".insteadOf https://gitlab.local/
這樣的話,你不接觸到原件遠程URL,當你使用它修改它。
嘗試將來源從https更改爲ssh - 請參閱http://stackoverflow.com/questions/6565357/git-push-requires-username-and-password – mplf