Git failed with a fatal error.
HttpRequestException encountered.
An error occurred while sending the request.
cannot spawn /C/Program Files (x86)/Microsoft Visual Studio/2017/Enterprise/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://ltbezerra@bitbucket.org': terminal prompts disabled
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'll jump on the dogpile with a bit more info, but a slightly different use-case.
We use dev.azure.com, but the exact same symptoms occur.
What's extra weird, is that the problem gets fixed with a VS update, breaks with the next one, works with update after that, then breaks again, e.g., I updated to VS 15.9.3 and the problem returned!!!
Following the reccos from the SO link above, I discovered that simply grabbing the `AzureDevOps.Authentication.dll` assembly from the [Git Credential Manager for Windows v1.18.2](https://github.com/Microsoft/Git-Credential-Manager-for-Windows/releases/tag/v1.18.2) zip file and dropping it into the `C:\Program Files (x86)\Microsoft Visual Studio\2017\<<<VSEdition>>>\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Git\mingw32\libexec\git-core` folder allowed me to clone a Dev.Azure.com repo.
I haven't done any commits yet, but I've got my fingers-crossed that there's not an alternate authentication path for those tasks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In case anyone else has issues with this fix in late 2018:
I tried the steps from the Stack Overflow with Visual Studio Pro 2017 version 15.8.1, but it was not working for me.
I've downloaded the GCM v1.17.0 files to my git-core directory twice, restarted VS multiple times, and rebooted the machine.
When trying to Push, the blue Atlassian login dialog appeared, I entered my login info and clicked OK. After a few seconds, the Atlassian login dialog appeared again, and I tried submitting my login info again.
After a few seconds, the error appeared in the Output pane.
Opening repositories:
C:\Users\username\Source\Repos\MyProject
Pushing v1.0
Error: cannot spawn /c/program files (x86)/microsoft visual studio/2017/professional/common7/ide/commonextensions/microsoft/teamfoundation/team explorer/Git/mingw32/libexec/git-core/git-askpass.exe: No such file or directory
Error encountered while pushing to the remote repository: Git failed with a fatal error.
could not read Password for 'https://username@bitbucket.org': terminal prompts disabled
Pushing to https://username@bitbucket.orgusername/MyProject
I then checked for a newer version of GCM, and saw there was a v1.18.2 available: (as of Nov 5, 2018)
https://github.com/Microsoft/Git-Credential-Manager-for-Windows/releases/tag/v1.18.2
I downloaded this newer version, copied the files, and the Push to BitBucket finally worked.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
the stackoverflow article worked, took me too much time to land on this page and find the solution.. :-((
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.