1. 首页>
  2. 技术文章>
  3. vs向github上push提交时terminal prompts disabled

vs向github上push提交时terminal prompts disabled

10/7/18 11:27:52 AM 浏览 2204 评论 0

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/ahuinan/xx.git


解决

打开项目所在的目录下.git文件夹,打开config文件。

修改[remote “origin”]下的 url 按格式:

url = https://用户名:密码@github.com/ahuinan/xx.git 

网友讨论