VS2017提交代码到GitHub时报错:未能推送到远程存储库

一、错误内容
未能推送到远程存储库。请参见输出窗口了解更多详细信息。

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/sunxiaobei/DesignPattern.git
二、解决方法
1、打开项目所在的目录下.git文件夹,打开config文件。

2、修改[remote “origin”]

url = https://github.com/XXXXX/XXXXx.git
为 

url = https://自己的用户名:自己的密码@github.com/sunxiaobei/DesignPattern.git
增加:自己的用户名:自己的密码@

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章