LFS:找不到..XXXX.. 的 Git 凭据.您的用户名的格式必须为 DOMAINuser [英] LFS: Git credentials for..XXXX..not found. Your user name must be of the form DOMAINuser

查看:70
本文介绍了LFS:找不到..XXXX.. 的 Git 凭据.您的用户名的格式必须为 DOMAINuser的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此,我们尝试使用本地 TFS 设置 GIT LFS,但遇到了一些错误.错误和设置描述如下:

设置:

1) 带有更新 1 的本地 TFS 2017

2) Visual Studio 2015 w/Update 3

3) Atlassian SourceTree(Git 客户端)

4) GIT LFS 安装在开发者的系统上

5) 适用于 Windows 的 Git 凭证管理器 (GCM)

错误:

  1. 转到 SourceTree 中的工具->选项->[Git 选项卡] 并选择 [使用 系统 Git] 并尝试从历史结果中检出文件的版本在以下错误中:

<块引用>

git-lfs/2.0.1 (GitHub; windows amd64; go 1.8; git 678cdbd4) git版本 2.12.1.windows.1

$ git-lfs.exe filter-process 下载对象时出错:Framework4.dll(ef57f778c9fd50b27144784cd1df55b1b014d564ad6d8d726b156748219b8e5f)

涂抹错误:下载Framework4.dll时出错(ef57f778c9fd50b27144784cd1df55b1b014d564ad6d8d726b156748219b8e5f):批处理响应:您的用户名的格式必须为 DOMAINuser.这是目前 USR123

  1. 转到 SourceTree 中的工具->选项->[Git 选项卡] 并选择 [使用 Embedded Git] 并尝试从历史结果中检出文件的版本在以下错误中:

<块引用>

git-lfs/1.5.2 (GitHub; windows 386; go 1.7.3; git 547a06aa) git版本 2.10.2.windows.1

$ git-lfs.exe smudge -- Framework4.dll 下载对象时出错:框架4.dll(ef57f778c9fd50b27144784cd1df55b1b014d564ad6d8d726b156748219b8e5f)

涂抹错误:下载错误ef57f778c9fd50b27144784cd1df55b1b014d564ad6d8d726b156748219b8e5f:LFS:Git 凭据http://localhost:8080/tfs/DefaultCollection/Common/_git/Common%20References未找到.:LFS:Git 凭据http://localhost:8080/tfs/DefaultCollection/Common/_git/Common%20References未找到.

我的研究和尝试:

  1. 人们建议使用适用于 Windows 的 Git 凭据管理器 (GCM)"来存储和管理凭据.这是用最新的 git 版本安装的.但错误仍然存​​在.

  2. 尝试在没有安装The Git Credential Manager for Windows (GCM)"的情况下仍然发生错误.

  3. 将 Git 版本更新到最新版本.试过 git-lfs/1.5.2 和 git-lfs/2.0.1.但是不行.

  4. 有关环境的其他错误信息:

<块引用>

环境:

LocalWorkingDir=C:UsersUSR123DocumentsGitCloneTestCommonReferences2LocalGitDir=C:UsersUSR123DocumentsGitCloneTestCommonReferences2.gitLocalGitStorageDir=C:UsersUSR123DocumentsGitCloneTestCommonReferences2.gitLocalMediaDir=C:UsersUSR123DocumentsGitCloneTestCommonReferences2.gitlfsobjects本地参考目录=TempDir=C:UsersUSR123DocumentsGitCloneTestCommonReferences2.gitlfs mpConcurrentTransfers=1 TusTransfers=false BasicTransfersOnly=falseBatchTransfer=true SkipDownloadErrors=false FetchRecentAlways=falseFetchRecentRefsDays=7 FetchRecentCommitsDays=0FetchRecentRefsIncludeRemotes=true PruneOffsetDays=3PruneVerifyRemoteAlways=false PruneRemoteName=originAccessDownload=ntlm AccessUpload=ntlm DownloadTransfers=basicUploadTransfers=basic GIT_CONFIG_PARAMETERS='color.branch=false''color.diff=false' 'color.status=false' 'diff.mnemonicprefix=false''core.quotepath=false' GIT_DIR=.git GIT_LFS_PATH=C:Program FilesGitLFS GIT_PAGER=cat GIT_PREFIX=

有关如何修复上述凭据/身份验证错误的任何想法?

谢谢.

解决方案

如果您在未指定域名的情况下登录 TFS 并尝试推送大文件,则此错误来自 LFS 扩展.转到控制面板用户帐户凭据管理器,Windows 凭据选项卡并删除为 TFS 服务器存储的凭据.当您从命令行再次 git push 时,系统将提示您输入凭据.使用域指定您的用户名:DOMAINUSER

So we are trying to setup GIT LFS with on premises TFS and we are having a couple of errors. The errors and setup are described below:

Setup:

1) On-premises TFS 2017 w/Update 1

2) Visual Studio 2015 w/Update 3

3) Atlassian SourceTree (Git Client)

4) GIT LFS is installed on the developer's system

5) The Git Credential Manager for Windows (GCM)

Errors:

  1. Going to Tools->Options->[Git Tab] in SourceTree and selecting [Use System Git] and trying to checkout a version of the file from history results in the following error:

git-lfs/2.0.1 (GitHub; windows amd64; go 1.8; git 678cdbd4) git version 2.12.1.windows.1

$ git-lfs.exe filter-process Error downloading object: Framework4.dll (ef57f778c9fd50b27144784cd1df55b1b014d564ad6d8d726b156748219b8e5f)

Smudge error: Error downloading Framework4.dll (ef57f778c9fd50b27144784cd1df55b1b014d564ad6d8d726b156748219b8e5f): batch response: Your user name must be of the form DOMAINuser. It is currently USR123

  1. Going to Tools->Options->[Git Tab] in SourceTree and selecting [Use Embedded Git] and trying to checkout a version of the file from history results in the following error:

git-lfs/1.5.2 (GitHub; windows 386; go 1.7.3; git 547a06aa) git version 2.10.2.windows.1

$ git-lfs.exe smudge -- Framework4.dll Error downloading object: Framework4.dll (ef57f778c9fd50b27144784cd1df55b1b014d564ad6d8d726b156748219b8e5f)

Smudge error: Error downloading ef57f778c9fd50b27144784cd1df55b1b014d564ad6d8d726b156748219b8e5f: LFS: Git credentials for http://localhost:8080/tfs/DefaultCollection/Common/_git/Common%20References not found.: LFS: Git credentials for http://localhost:8080/tfs/DefaultCollection/Common/_git/Common%20References not found.

What I have researched and tried:

  1. Folks recommended using "The Git Credential Manager for Windows (GCM)" to store and manage credentials. This was installed with the latest git version. But the errors still persists.

  2. Tried it without having installed "The Git Credential Manager for Windows (GCM)" still the error happens.

  3. Updated Git versions to the latest. Tried git-lfs/1.5.2 and git-lfs/2.0.1. But no go.

  4. Additional error info on the Environment:

ENV:

LocalWorkingDir=C:UsersUSR123DocumentsGitCloneTestCommonReferences2 LocalGitDir=C:UsersUSR123DocumentsGitCloneTestCommonReferences2.git LocalGitStorageDir=C:UsersUSR123DocumentsGitCloneTestCommonReferences2.git LocalMediaDir=C:UsersUSR123DocumentsGitCloneTestCommonReferences2.gitlfsobjects LocalReferenceDir= TempDir=C:UsersUSR123DocumentsGitCloneTestCommonReferences2.gitlfs mp ConcurrentTransfers=1 TusTransfers=false BasicTransfersOnly=false BatchTransfer=true SkipDownloadErrors=false FetchRecentAlways=false FetchRecentRefsDays=7 FetchRecentCommitsDays=0 FetchRecentRefsIncludeRemotes=true PruneOffsetDays=3 PruneVerifyRemoteAlways=false PruneRemoteName=origin AccessDownload=ntlm AccessUpload=ntlm DownloadTransfers=basic UploadTransfers=basic GIT_CONFIG_PARAMETERS='color.branch=false' 'color.diff=false' 'color.status=false' 'diff.mnemonicprefix=false' 'core.quotepath=false' GIT_DIR=.git GIT_LFS_PATH=C:Program FilesGit LFS GIT_PAGER=cat GIT_PREFIX=

Any ideas on how to fix the credential / authentication errors above?

Thank you.

解决方案

This error comes from LFS extension if you have logged in to TFS without specifying domain name, and you are trying to push a large file. Go to Control PanelUser AccountsCredential Manager, Windows Credentials tab and remove credentials stored for TFS server. When you git push again from command line, you will be prompted for your credentials. Specify your user name with the domain: DOMAINUSER

这篇关于LFS:找不到..XXXX.. 的 Git 凭据.您的用户名的格式必须为 DOMAINuser的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆