致命:cmd中的git认证失败

mac*_*ler 2 git azure-devops

我正在尝试将branch(git push <remote> master)推送到我的远程存储库.当我从cmd执行此操作时,系统会提示我输入用户名和密码:

Username for 'https://<my_domain>.visualstudio.com': <my_user_name>

Password for 'https://<my_user_name>@<my_domain>.visualstudio.com':

键入后我得到:

fatal: Authentication failed for https://<my_domain>.visualstudio.com/<my_repo>'

但是当我从git bash做同样的事情时,它只是工作,而不提示用户名和密码.

我在存储visual studio team services库托管的存储库中检查了用户名和密码,看起来很有效.

检查git config user.namegit config user.password从中git bash得到我在cmd中输入的用户名和密码.

有谁知道我在认证方面做错了什么,如何配置git从cmd正确连接?

我在网站上查看了类似的问题,但没有发现任何有用的东西..谢谢!

mac*_*ler 6

git config --global credential.helper manager 解决了这个问题