I've tried googling and stack-googling for this, but haven't found the solution still. I'm working with Git under Windows.
When I try either of those commands:
$ git push origin master
$ git push https://name@server/git/repoName.git
i.e. without typing my password, each time I get the authentication error (it doesn't even ask for password):
error: RPC failed; result=22, HTTP code = 401
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
When I provide my password directly (inline), push works fine:
$ git push https://name:myPasswordHere@server/git/repoName.git
Some additional info if required that I think might be useful:
$ git remote -v
origin https://name@server/git/repoName.git (fetch)
origin https://name@server/git/repoName.git (push)
Contents of .gitconfig: (git config --list
actually displays it, so the file is read).
[http]
sslVerify = false
[user]
name = foo
email = foo@foo.com
Full list of configuration options:
$ 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
Any hints what can be wrong?
we are also having the same problem, the solution was to downgrade to 1.7.6 or similar, everything we tried with 1.7.8/9 failed in the same way