visual studio 停止将我的提交发送到 bitbucket 并且出现此错误
Error encountered while cloning the remote repository: Git failed with a fatal error. HttpRequestException encountered. There was an error submitting the request. can not spawn
C / Program Files (x86) / Microsoft Visual Studio / 2017 / Community / Common7 / IDE / CommonExtensions / Microsoft / TeamFoundation / Team Explorer / Git / mingw32 / libexec / git-core / git-askpass.exe: No such file or directory
could not read Password for 'https: //gustavobedsamarpes@bitbucket.org': terminal prompts disabled The error occurs when I try to clone my repository or commit
最佳答案
我遇到了同样的问题,我在这里找到了适合我的答案: https://github.com/github/VisualStudio/issues/949
以下是提到的修复步骤: VIsual Studio 2017 中捆绑的 Git-Credential-Manager-for-Windows/似乎不是最新版本。下载最新版本并将其放在 Visual Studio 2017 中的文件之上对我很有用。
- 从https://github.com/Microsoft/Git-Credential-Manager-for-Windows/releases/tag/v1.17.0 下载zip 文件gcmw-v1.17.0.zip
- 导航到
C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Git\mingw32\libexec\
(或无论你“丢失的”git-askpass.exe
所在的位置)。 - 复制 git-core 文件夹并将其重命名为 backup 或类似名称
- 将 zip 文件中的文件放在新 git-core 文件夹内容的顶部,并在提示的地方覆盖
关于git - 带有 bitbucket 的 Visual Studio 2017,禁用终端提示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51757837/