git - 带有 bitbucket 的 Visual Studio 2017,禁用终端提示

标签 git visual-studio-2017 git-clone git-credential-manager

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 中的文件之上对我很有用。

  1. https://github.com/Microsoft/Git-Credential-Manager-for-Windows/releases/tag/v1.17.0 下载zip 文件gcmw-v1.17.0.zip
  2. 导航到 C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Git\mingw32\libexec\(或无论你“丢失的”git-askpass.exe 所在的位置)。
  3. 复制 git-core 文件夹并将其重命名为 backup 或类似名称
  4. 将 zip 文件中的文件放在新 git-core 文件夹内容的顶部,并在提示的地方覆盖

关于git - 带有 bitbucket 的 Visual Studio 2017,禁用终端提示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51757837/

相关文章:

git - bin 和 obj 目录不能被忽略。也推不了

windows - 在git中移动文件夹

c# - Visual Studio 扩展 : Custom Quick Action

git - 删除远程hadoop集群中的克隆文件

java - IntelliJ - Java 文件显示带有扩展名

c# - RDLC 报告在将 Visual Studio 2015 更改为 Visual Studio 2017 后停止工作

c# - 在任何项目上发布错误

Git 克隆一个分支,而不是 master

eclipse - git 存储库克隆失败。连接重置

git - merge pull 请求的一部分