title: fatal: Authentication failed in git in cmd
body: <p>I'm trying to push a branch (<code>git push &lt;remote&gt; master</code>) to my remote repository. When I'm doing it from cmd, I'm prompted with my user name and password:</p>
  
  <p><code>Username for 'https://&lt;my_domain&gt;.visualstudio.com': &lt;my_user_name&gt;</code></p>
  
  <p><code>Password for 'https://&lt;my_user_name&gt;@&lt;my_domain&gt;.visualstudio.com':</code></p>
  
  <p>and after typing it I get:</p>
  
  <p><code>fatal: Authentication failed for https://&lt;my_domain&gt;.visualstudio.com/&lt;my_repo&gt;'</code></p>
  
  <p>However when I do the same thing from git bash it just works, without prompting the username and password. </p>
  
  <p>I checked the user name and password in the repository at <code>visual studio team services</code> where the repository hosted, and it seems like working. </p>
  
  <p>Checking <code>git config user.name</code> and <code>git config user.password</code> from <code>git bash</code> yielded exactly the username and password that I'm typing in cmd.</p>
  
  <p>Does anyone know what am I doing wrong with the authentication, and how can I configure git to connect correctly from cmd?</p>
  
  <p>I looked through similar questions on the site, but didn't find anything that works.. Thanks!</p>