所以我们尝试使用内部TFS设置GIT LFS,我们遇到了一些错误。错误和设置如下所述:
建立:
1)内部部署TFS 2017 w / Update 1
2)Visual Studio 2015 w / Update 3
3)Atlassian SourceTree(Git客户端)
4)GIT LFS安装在开发人员的系统上
5)Windows的Git凭据管理器(GCM)
错误:
git-lfs / 2.0.1(GitHub; windows amd64;转1.8; git 678cdbd4)git版本2.12.1.windows.1
$ git-lfs.exe filter-process下载对象时出错:Framework4.dll(ef57f778c9fd50b27144784cd1df55b1b014d564ad6d8d726b156748219b8e5f)
涂抹错误:下载Framework4.dll时出错(ef57f778c9fd50b27144784cd1df55b1b014d564ad6d8d726b156748219b8e5f):批处理响应:您的用户名必须是DOMAIN \ user格式。目前是USR123
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下载对象时出错:Framework4.dll(ef57f778c9fd50b27144784cd1df55b1b014d564ad6d8d726b156748219b8e5f)
涂抹错误:下载错误ef57f778c9fd50b27144784cd1df55b1b014d564ad6d8d726b156748219b8e5f:LFS:未找到http://localhost:8080/tfs/DefaultCollection/Common/_git/Common%20References的Git凭据:LFS:找不到http://localhost:8080/tfs/DefaultCollection/Common/_git/Common%20References的Git凭据。
我研究和尝试的内容:
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 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 =
有关如何修复上述凭据/身份验证错误的任何想法?
谢谢。
如果您在未指定域名的情况下登录到TFS,并且您尝试推送大文件,则此错误来自LFS扩展。转到“控制面板”\“用户帐户”\“凭据管理器”,“Windows凭据”选项卡,然后删除为TFS服务器存储的凭据。当您从命令行再次进行git push时,系统将提示您输入凭据。使用域指定您的用户名:DOMAIN \ USER
由于version 2.4.0 Git-Lfs附带NTLM支持。通过这种方式,您不再需要通过在Windows Credential Manager中设置凭据来使用basic authentication fallback,而Git-Lfs应该在TFS本地开箱即用。