I have been using BitBucket as my code repository with Visual Studio, but today I'm not able to push code.
I tried to fetch, it opens a window to input the BitBucket credentials (username/email and password), the window closes and VisualStudio gives an error:
Fetching from origin Error encountered while fetching: 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/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://[email protected]': terminal prompts disabled
I tried the following but the error continues:
Update the Visual Studio
Installing the BitBucket extension for Visual Studio
Clearing and inserting the git credentials manually