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

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

问题描述

因此,我们尝试在本地TFS上设置GIT LFS,并且遇到了一些错误.错误和设置如下所述:

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:

设置:

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

1) On-premises TFS 2017 w/Update 1

2)带更新3的Visual Studio 2015

2) Visual Studio 2015 w/Update 3

3)Atlassian SourceTree(Git客户端)

3) Atlassian SourceTree (Git Client)

4)GIT LFS已安装在开发人员的系统上

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

5)Windows的Git凭据管理器(GCM)

5) The Git Credential Manager for Windows (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/2.0.1 (GitHub; windows amd64; go 1.8; git 678cdbd4) git version 2.12.1.windows.1

$ git-lfs.exe过滤过程下载对象错误:Framework4.dll (ef57f778c9fd50b27144784cd1df55b1b014d564ad6d8d726b156748219b8e5f)

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

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

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

  1. 转到SourceTree中的工具"->选项"->"Git选项卡",然后选择[使用 嵌入式 Git],然后尝试从历史记录结果中检出文件的版本出现以下错误:

git-lfs/1.5.2(GitHub; Windows 386; go 1.7.3; git 547a06aa)git 版本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错误-Framework4.dll下载对象错误: Framework4.dll (ef57f778c9fd50b27144784cd1df55b1b014d564ad6d8d726b156748219b8e5f)

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

涂抹错误:下载错误 ef57f778c9fd50b27144784cd1df55b1b014d564ad6d8d726b156748219b8e5f:LFS: 的Git凭证 http://localhost:8080/tfs/DefaultCollection/Common/_git/Common% 20参考文献 找不到.:LFS:的Git凭据 http://localhost:8080/tfs/DefaultCollection/Common/_git/Common% 20参考文献 找不到.

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.

我研究和尝试过的东西:

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

  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.

在未安装用于Windows的Git凭据管理器(GCM)"的情况下进行了尝试,仍然发生错误.

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

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

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

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

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 =来源 AccessDownload = ntlm AccessUpload = ntlm DownloadTransfers =基本 UploadTransfers =基本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 =猫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 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=

关于如何解决上述凭据/身份验证错误的任何想法?

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

谢谢.

推荐答案

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

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 Panel\User Accounts\Credential 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: DOMAIN\USER

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

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