failed to execute prompt script (exit code 1)
could not read Username for 'https://*****': No such file or directory
不知道什么情况,想要拉取更新代码的时候突然出现这个错误(是因为电脑管家清理空间误删了??不太理解,有无大佬讲解一下)
解决方案就是打开项目文件==》打开.git文件==》打开config文件
会看到:
[remote "origin"]
url = 项目克隆下来的地址
fetch = +refs/heads/*:refs/remotes/origin/*
然后我们需要在地址中间插上自己git的用户名和密码 还有@,格式为[userName]:[password]@
具体位置在http://后面,直接插入就可以了
url = https://[userName]:[password]@****************.git
这样就可以啦,可以正常拉取推送代码