vs2017 向github上push提交時報錯
vs2017 向github上push提交時 could not read Username for
錯誤
Git failed with a fatal error.
HttpRequestException encountered.
��������ʱ�����
cannot spawn askpass: No such file or directory
could not read Username for ‘https://github.com‘: terminal prompts disabled
Pushing to https://github.com/hddevteam/ServerMonitor-for-UWP.git
解決
- 開啟專案所在的目錄下.git資料夾,開啟config檔案。
- 修改[remote “origin”]下的
url = https://github.com/hddevteam/ServerMonitor-for-UWP.git
為
url = https://自己的使用者名稱:自己的密碼@github.com/hddevteam/ServerMonitor-for-UWP.git
這裡的“hddevteam”網上可能有不同的說法,這個是我們的團隊名,個人開發的話是自己的使用者名稱,一般不需要改。