title: git-askpass.exe: No such file or directory could not read Username for
body: <p>I think I have done a fair share of research into this issue, but I have not been able to find a corresponding problem/solution.</p>
  
  <p><strong>What is trying to be achieved</strong></p>
  
  <p>Publish and push a solution from VS 2017 to Microsoft Visual Studio Team Services (VSTS).</p>
  
  <p><strong>Reproduceable Example</strong></p>
  
  <p>A new solution "GitExample" with the project "ExampleProject" has in been created (/w "Create new Git repository" checked).</p>
  
  <p>In the Team Explorer window I select "Publish Git Repo" under the "Push to Visual  Studio Team Services" section. I choose my account and domain and press "Publish Repository".</p>
  
  <p>Following error message is printed from Git.</p>
  
  <pre><code>Opening repositories:
  c:\users\SampleUser\source\repos\PythonApplication4
  Commit e3b04515 created locally in repository c:\users\SampleUser\source\repos\PythonApplication4
  Error encountered while pushing branch to the remote repository: Git failed with a fatal error.
  ArgumentNullException encountered.
     Value cannot be null.
  Parameter name: path
  ArgumentNullException encountered.
     Value cannot be null.
  Parameter name: path
  cannot spawn /C/Program Files/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 Username for 'https://repodomain.visualstudio.com': terminal prompts disabled
  Pushing to https://repodomain.visualstudio.com/_git/PythonApplication4
  
  A new Git repository has been created for you in C:\Users\SampleUser\source\repos\GitExample.
  Opening repositories:
  C:\Users\SampleUser\source\repos\GitExample
  Commit 5d8765b7 created locally in repository C:\Users\SampleUser\source\repos\GitExample
  Opening repositories:
  C:\Users\SampleUser\source\repos\GitExample
  The calling thread cannot access this object because a different thread owns it.
  Error encountered while pushing branch to the remote repository: Git failed with a fatal error.
  ArgumentNullException encountered.
     Value cannot be null.
  Parameter name: path
  ArgumentNullException encountered.
     Value cannot be null.
  Parameter name: path
  cannot spawn /C/Program Files/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 Username for 'https://repodomain.visualstudio.com': terminal prompts disabled
  Pushing to https://repodomain.visualstudio.com/_git/GitExample
  </code></pre>
  
  <p>The problem seems to reside with the <a href="https://github.com/Microsoft/Git-Credential-Manager-for-Windows" rel="nofollow noreferrer">Git Credential Manager for Windows</a>. However, the Windows Credential Manager correctly lists git:repodomain.visualstudio.com with the correct User Name and Password combination.</p>
  
  <p><strong>What has been done:</strong></p>
  
  <ol>
  <li>Uninstall git for Windows and reinstall without Windows Credential Manager. Install Windows Credential Manager from GitHub repo.
  
  <ol start="2">
  <li>Repair Visual Studio 2017 installation.</li>
  <li>Delete and create Login in Credential Manager</li>
  </ol></li>
  </ol>
  
  <p>I appreciate your time and effort looking into this.</p>