Visual studio 2017 with bitbucket, terminal prompt

2019-01-31 07:01发布

The visual studio stopped sending my commits to the bitbucket and this error appears 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

4条回答
贪生不怕死
2楼-- · 2019-01-31 07:23

FYI this issue was fixed for me by updating VS 2017 to version 15.9.4

查看更多
仙女界的扛把子
3楼-- · 2019-01-31 07:25

I just experienced it this instant. so what i did is i tried to login to bitbucket, surpisingly it says "I cant login to using username please use email". then i did login using my email,then dig my bitbucket settings and found out that i can generate a password..

  1. Goto settings
  2. App password
  3. Create app password
  4. use the password to login instead of your real password

enter image description here

查看更多
欢心
4楼-- · 2019-01-31 07:26

I had the same issue, I found an answer that worked for me here: https://github.com/github/VisualStudio/issues/949

Below are the steps mentioned to fix: It seems that the bundled Git-Credential-Manager-for-Windows/ in VIsual Studio 2017 is not the latest release. Downloading the latest release and putting it on top of the files in Visual Studio 2017 worked for me.

  1. download the zip file gcmw-v1.17.0.zip from https://github.com/Microsoft/Git-Credential-Manager-for-Windows/releases/tag/v1.17.0
  2. navigate to C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Git\mingw32\libexec\ (or wherever your 'missing' git-askpass.exe resides).
  3. make a copy of the git-core folder and rename it backup or something like that
  4. put the files from the zip file on top of the contents of your new git-core folder and overwrite where prompted
查看更多
冷血范
5楼-- · 2019-01-31 07:35

I have added my password to remote URL. (Team Explorer > Repository Settings > Remotes) https://username:password@bitbucket.org/username/myproject.git. After that my problem has solved.

查看更多
登录 后发表回答