title: Git push doesn't ask for password and gives 401. Fine when password typed inline in console
body: <p>I've tried googling and stack-googling for this, but haven't found the solution still. I'm working with Git under Windows.</p>
  
  <p>When I try either of those commands:</p>
  
  <pre><code>$ git push origin master
  $ git push https://name@server/git/repoName.git
  </code></pre>
  
  <p>i.e. without typing my password, each time I get the authentication error (it doesn't even ask for password):</p>
  
  <pre><code>error: RPC failed; result=22, HTTP code = 401
  fatal: The remote end hung up unexpectedly
  fatal: The remote end hung up unexpectedly
  </code></pre>
  
  <p>When I provide my password directly (inline), push works fine:</p>
  
  <pre><code>$ git push https://name:myPasswordHere@server/git/repoName.git
  </code></pre>
  
  <p>Some additional info if required that I think might be useful:</p>
  
  <pre><code>$ git remote -v
  origin  https://name@server/git/repoName.git (fetch)
  origin  https://name@server/git/repoName.git (push)
  </code></pre>
  
  <p>Contents of .gitconfig: (<code>git config --list</code> actually displays it, so the file is read).</p>
  
  <pre><code>[http]
      sslVerify = false
  [user]
      name = foo
      email = foo@foo.com
  </code></pre>
  
  <p>Full list of configuration options:</p>
  
  <pre><code>$ git config --list // outside the repo
  core.symlinks=false
  core.autocrlf=true
  color.diff=auto
  color.status=auto
  color.branch=auto
  color.interactive=true
  pack.packsizelimit=2g
  help.format=html
  http.sslcainfo=/bin/curl-ca-bundle.crt
  sendemail.smtpserver=/bin/msmtp.exe
  diff.astextplain.textconv=astextplain
  rebase.autosquash=true
  http.sslverify=false
  user.name=foo
  user.email=foo@foo.com
  </code></pre>
  
  <p>Any hints what can be wrong?</p>