简体   繁体   English

LFS:找到了.XXXX的Git凭据。您的用户名必须是DOMAIN \ user格式

[英]LFS: Git credentials for..XXXX..not found. Your user name must be of the form DOMAIN\user

So we are trying to setup GIT LFS with on premises TFS and we are having a couple of errors. 所以我们尝试使用内部TFS设置GIT LFS,我们遇到了一些错误。 The errors and setup are described below: 错误和设置如下所述:

Setup: 建立:

1) On-premises TFS 2017 w/Update 1 1)内部部署TFS 2017 w / Update 1

2) Visual Studio 2015 w/Update 3 2)Visual Studio 2015 w / Update 3

3) Atlassian SourceTree (Git Client) 3)Atlassian SourceTree(Git客户端)

4) GIT LFS is installed on the developer's system 4)GIT LFS安装在开发人员的系统上

5) The Git Credential Manager for Windows (GCM) 5)Windows的Git凭据管理器(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: 转到SourceTree中的工具 - >选项 - > [Git选项卡]并选择[使用系统 Git]并尝试从历史记录中检出文件的版本会导致以下错误:

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

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

Smudge error: Error downloading Framework4.dll (ef57f778c9fd50b27144784cd1df55b1b014d564ad6d8d726b156748219b8e5f): batch response: Your user name must be of the form DOMAIN\\user. 涂抹错误:下载Framework4.dll时出错(ef57f778c9fd50b27144784cd1df55b1b014d564ad6d8d726b156748219b8e5f):批处理响应:您的用户名必须是DOMAIN \\ user格式。 It is currently USR123 目前是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: 转到SourceTree中的工具 - >选项 - > [Git选项卡]并选择[使用嵌入式 Git]并尝试从历史记录中检出文件的版本会导致以下错误:

git-lfs/1.5.2 (GitHub; windows 386; go 1.7.3; git 547a06aa) git version 2.10.2.windows.1 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) $ git-lfs.exe smudge - Framework4.dll下载对象时出错: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. 涂抹错误:下载错误ef57f778c9fd50b27144784cd1df55b1b014d564ad6d8d726b156748219b8e5f:LFS:未找到http:// localhost:8080 / tfs / DefaultCollection / Common / _git / Common%20References的 Git凭据:LFS: http:// localhost:8080 / tfs /的 Git凭据未找到DefaultCollection / Common / _git / Common%20References

What I have researched and tried: 我研究和尝试的内容:

  1. Folks recommended using "The Git Credential Manager for Windows (GCM)" to store and manage credentials. 人们建议使用“Git Credential Manager for Windows(GCM)”来存储和管理凭据。 This was installed with the latest git version. 这是使用最新的git版本安装的。 But the errors still persists. 但错误仍然存​​在。

  2. Tried it without having installed "The Git Credential Manager for Windows (GCM)" still the error happens. 没有安装“Windows的Git Credential Manager(GCM)”仍然发生错误。

  3. Updated Git versions to the latest. 将Git版本更新到最新版本。 Tried git-lfs/1.5.2 and git-lfs/2.0.1. 尝试了git-lfs / 1.5.2和git-lfs / 2.0.1。 But no go. 但是没有去。

  4. Additional error info on the Environment: 有关环境的其他错误信息:

ENV: ENV:

LocalWorkingDir=C:\\Users\\USR123\\Documents\\GitCloneTest\\Common\\References2 LocalGitDir=C:\\Users\\USR123\\Documents\\GitCloneTest\\Common\\References2.git LocalGitStorageDir=C:\\Users\\USR123\\Documents\\GitCloneTest\\Common\\References2.git LocalMediaDir=C:\\Users\\USR123\\Documents\\GitCloneTest\\Common\\References2.git\\lfs\\objects LocalReferenceDir= TempDir=C:\\Users\\USR123\\Documents\\GitCloneTest\\Common\\References2.git\\lfs\\tmp 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 Files\\Git LFS GIT_PAGER=cat GIT_PREFIX= LocalWorkingDir = C:\\ Users \\ USR123 \\ Documents \\ GitCloneTest \\ Common \\ References2 LocalGitDir = C:\\ Users \\ USR123 \\ Documents \\ GitCloneTest \\ Common \\ References2.git LocalGitStorageDir = C:\\ Users \\ USR123 \\ Documents \\ GitCloneTest \\ Common \\ References2 .git LocalMediaDir = C:\\ Users \\ USR123 \\ Documents \\ GitCloneTest \\ Common \\ References2.git \\ lfs \\ objects LocalReferenceDir = TempDir = C:\\ Users \\ USR123 \\ Documents \\ GitCloneTest \\ Common \\ References2.git \\ lfs \\ tmp ConcurrentTransfers = 1 TusTransfers = false BasicTransfersOnly = false BatchTransfer = true SkipDownloadErrors = 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 Files \\ Git 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. 如果您在未指定域名的情况下登录到TFS,并且您尝试推送大文件,则此错误来自LFS扩展。 Go to Control Panel\\User Accounts\\Credential Manager, Windows Credentials tab and remove credentials stored for TFS server. 转到“控制面板”\\“用户帐户”\\“凭据管理器”,“Windows凭据”选项卡,然后删除为TFS服务器存储的凭据。 When you git push again from command line, you will be prompted for your credentials. 当您从命令行再次进行git push时,系统将提示您输入凭据。 Specify your user name with the domain: DOMAIN\\USER 使用域指定您的用户名:DOMAIN \\ USER

Since version 2.4.0 Git-Lfs comes with NTLM support. 版本2.4.0开始, Git-Lfs支持NTLM。 With this you no longer need to use the basic authentication fallback by setting the credentials in the Windows Credential Manager and Git-Lfs should work out of the box with TFS on-prem. 有了这个,您不再需要通过在Windows凭据管理器中设置凭据来使用基本身份验证回退 ,而Git-Lfs应该在TFS本地开箱即用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM