最佳答案
试图访问私人企业 tfs。 他们通过给予 Windows 用户适当的权限(域登录)给我访问权限。
I'm fine with accessing web interface of tfs, browse repository and stuff.
但当我试图逃跑的时候
git clone https://tfs.somehostname.com/tfs/somefolder/_git/therepository
它失败了
Cloning into 'therepository'...
fatal: Authentication failed for 'https://tfs.somehostname.com/tfs/somefolder/_git/therepository/'
在没有公司网络的家庭电脑上试过-同样的错误。
Tried in PowerShell, Git Bash, Clone via VisualStudio - same error.
SSH 关闭(给定请求超时)。
Web 和 Git 都要求凭证一次(尝试删除凭证管理器-再次请求,提交 Web 后没问题,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
而其他人包括它
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 - 200 0 0 265