Cannot use git actions in VisualStudio (git-askpass.exe: No such file or directory)

After trying different solutions for a while I found the solution in the VisualStudio forums: https://developercommunity.visualstudio.com/solutions/310409/view.html

Thanks to James Mu.

Here are the detailed steps that worked for me:

  1. Install the latest pre-release of Git Credential Manager for Windows. You can download the .exe here: https://github.com/Microsoft/Git-Credential-Manager-for-Windows/releases/tag/v1.16.3

  2. Open the folder C:\Program Files\Git\mingw64\libexec\git-core with the windows file explorer, order files by "Date modified" descending (most recent first), and copy the top 6 files to %DevEnvDir%\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Git\mingw32\libexec\git-core.

    • For me the folder is C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Git\mingw32\libexec\git-core.

    • If it is not for you, view the value of %DevEnvDir% with "Developer Command Prompt for VS 2017" and the "set" command.

  3. Replace the files in the destination folder.