首页 > Web开发 > 详细

VS2019 Git连接源代码报错问题:cannot spawn askpass: No such file or directory could not read Username for ‘https://github.com‘: terminal prompts disabled

时间:2020-12-22 19:52:20      阅读:96      评论:0      收藏:0      [点我收藏+]

使用VS2019自带的团队资源管理器连接Git远程时,提示用户名密码,输入正确的用户名密码之后,报如下错误:

cannot spawn askpass: No such file or directory 
could not read Username for ‘https://github.com‘: terminal prompts disabled

如图

技术分享图片

 

出现此问题的解决办法是:

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

2、修改[remote “origin”]

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

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

 

VS2019 Git连接源代码报错问题:cannot spawn askpass: No such file or directory could not read Username for ‘https://github.com‘: terminal prompts disabled

原文:https://www.cnblogs.com/qqflying/p/14174356.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!