TFS Git凭证问题:我得到“致命:[存储库名称]身份验证失败…”]]

问题描述 投票:-1回答:1

我必须使用TFS存储库(由于它是客户端的属性,因此我不能更改TFS版本和配置)。>>

Git bash命令提示符不允许我为其设置凭据。

((我已经能够将存储库与GitHub Desktop和GitKraken一起使用,但是当我要进行强制推送或git Desktop应用程序中未包含的内容时,我不能使用命令提示符)。

因此,在尝试拉取,提取等操作时,出现了未经授权的git错误:

fatal: Authentication failed for 'repo url'

我尝试在Windows凭据程序中添加凭据(用户名前带有'domain\'):

enter image description here

但是它不起作用。

我尝试了命令git config --global credential.http://[tfs_server].integrated true。但是没有用。

我也尝试过git config --global credential.helper manager,也没有用。.

我尝试过git credential-manager deploy,然后得到:

Deploying from 'C:\Program Files\Git\mingw64\libexec\git-core' to 'C:\Program Files\Git'.
  deployment failed. U_U

Press any key to continue...

我没什么主意了。有人可以帮我吗?

我必须使用TFS信息库(由于它是客户端的属性,因此我无法更改TFS版本和配置)。 Git bash命令提示符不允许我为其设置凭据。 (...

git tfs repository git-bash credentials
1个回答
0
投票

而不是输入您的TFS / Azure DevOPS

用户名和密码,而是创建一个个人访问令牌(PAT)
© www.soinside.com 2019 - 2024. All rights reserved.