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

Jeric Cruz picture Jeric Cruz · Aug 7, 2018 · Viewed 8.8k times · Source

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.

Answer

dafriskymonkey picture dafriskymonkey · Aug 7, 2018

Same here, I do believe it's from bitbucket side.

the following worked for us :

Remove git related Credentials stored in Windows Credentials in >>Control Panel\All Control Panel Items\Credential Manager

link to SO here

then use this command :

git remote set-url origin https://name:[email protected]/repo.git

here is the source for this one