Search code examples
gitvisual-studio-2017bitbucketteam-explorer

Can't Pull/Fetch using VS Team Explorer(Bitbucket git)


I am getting an error in my VS 2017 Team Explorer whenever I pull/fetch or push.

Git failed with a fatal error.
HttpRequestException encountered.
   An error occurred while sending the request.
cannot spawn /C/Program Files/Git/mingw64/libexec/git-core/git-askpass.exe: No error
could not read Password for 'https://<myusername>@bitbucket.org': terminal prompts disabled.

I tried to set my password by indicating:

https://<myusername>:<mypassword>@bitbucket.org

Still not fixed. But when I used SourceTree, it is fine.

How can I fix this so I can able to use VS Team Explorer again for pull/push?

I am using the following:

  • VS 2017 Community 15.7.6
  • Git version 2.18.0
  • Bitbucket

Thanks in advance.


Solution

  • There is a problem in Git for Windows and Microsoft is monitoring the solution to release a new version of VS with the patch.

    https://developercommunity.visualstudio.com/content/problem/266473/sync-commit-git-failed-with-a-fatal-error.html

    ----- Finally I resolved with these steps --------------

    1) delete credentials in the Credential Manager

    2) rename or delete the Git directory in "C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/Common7/IDE/CommonExtensions/Microsoft/TeamFoundation/Team Explorer"

    3) install the package "https://github.com/Microsoft/Git-Credential-Manager-for-Windows/releases/tag/v1.17.0"

    4) when VS asks for the BitBucket credential insert them

    Only these sequence worked for me.