小编SLC*_*000的帖子

git clone:<URL>的身份验证失败

尝试访问私人公司tfs。他们通过授予Windows用户适当的权限(domain \ login)来授予我访问权限。

我可以访问tfs的Web界面,浏览存储库和其他东西。

但是当我尝试跑步时

 git clone https://tfs.somehostname.com/tfs/somefolder/_git/therepository
Run Code Online (Sandbox Code Playgroud)

它失败了

Cloning into 'therepository'...

fatal: Authentication failed for 'https://tfs.somehostname.com/tfs/somefolder/_git/therepository/'
Run Code Online (Sandbox Code Playgroud)

尝试使用没有公司网络资料的家用电脑-同样的错误。

在PowerShell,Git Bash,通过VisualStudio克隆中尝试过-同样的错误。

SSH已关闭(使请求超时)。

Web和Git都要求一次凭证(尝试在Credentials Manager中删除-再次询问,提交网络正常后,git失败)

公司帮手试图提供帮助,但他所提供的只是tfs日志。他说,我的用户名不包含请求(通过将我的尝试时间戳与日志同步进行跟踪)。

2018-07-19 07:04:00 SOMEIP GET /tfs/SOMEFOLDER/_git/REPOSITORY/info/refs service=git-upload-pack 443 - ANOTHERIP git/2.12.2+(Microsoft+Windows+NT+6.3.9600.0;+Win32NT+x64)+CLR/4.0.30319+VS15/15.0.0 - 401 2 5 62
2018-07-19 07:23:00 SOMEIP GET /tfs/SOMEFOLDER/_git/REPOSITORY/info/refs service=git-upload-pack 443 - ANOTHERIP git/2.18.0.windows.1 - 401 2 5 62
2018-07-19 07:23:00 SOMEIP GET /tfs/SOMEFOLDER/_git/REPOSITORY/info/refs service=git-upload-pack 443 - ANOTHERIP git/2.18.0.windows.1 - 401 1 3221225581 187
Run Code Online (Sandbox Code Playgroud)

而其他人包括它

2018-07-19 05:44:27 SOMEIP GET /tfs/SOMEFOLDER/_git/REPOSITORY/info/refs service=git-upload-pack 443 DOMAIN\LOGIN ANOTHERIP git/2.12.2+(Microsoft+Windows+NT+6.1.7601+Service+Pack+1;+Win32NT+x64)+CLR/4.0.30319+VS15/15.0.0 …
Run Code Online (Sandbox Code Playgroud)

windows git tfs credentials

7
推荐指数
6
解决办法
2万
查看次数

标签 统计

credentials ×1

git ×1

tfs ×1

windows ×1