LFS: Git credentials for..XXXX..not found. Your username must be of the form DOMAIN \ user

So, we are trying to configure GIT LFS using Indoor TFS, and we have a couple of errors. Errors and settings are described below:

Setup:

1) Internal TFS 2017 with Update 1

2) Visual Studio 2015 Update 3

3) Atlassian SourceTree (Git Client)

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

5) GIT Credential Manager for Windows (GCM)

Error:

  • Go to Tools-> Options β†’ [Git Tab] in SourceTree and select [Use Git System ], and trying to check the version of the file from the history will result in the following error:

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

$ git -lfs.exe filter-process Error loading object: Framework4.dll (Ef57f778c9fd50b27144784cd1df55b1b014d564ad6d8d726b156748219b8e5f)

Smudge error: error loading Framework4.dll (Ef57f778c9fd50b27144784cd1df55b1b014d564ad6d8d726b156748219b8e5f): batch response: your username should be of the form DOMAIN \ user. this is currently USR123

  1. Go to Tools-> Options β†’ [Git Tab] in SourceTree and select [Use Embedded Git] and trying to check the version of the file from the history results in the following error:

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

$ git -lfs.exe smudge - Framework4.dll Error loading object: Framework4.dll (Ef57f778c9fd50b27144784cd1df55b1b014d564ad6d8d726b156748219b8e5f)

Smudge error: loading errors ef57f778c9fd50b27144784cd1df55b1b014d564ad6d8d726b156748219b8e5f: LFS: GIT credentials for http: // localhost: 8080 / tfs / DefaultCollection / Common / _git / Common% 20References G: localhost LFS 80: 80 tfs / DefaultCollection / Common / _git / Common% 20References not found.

What I researched and tried:

  • It is recommended that you use the "GIT Credential Manager for Windows (GCM)" to store and manage credentials. This has been installed with the latest version of GIT. But the errors are still persisting.

  • Tried without installing "GIT Credential Manager for Windows (GCM)", an error still occurs.

  • Updated versions of GIT to the latest version. Tried git -lfs / 1.5.2 and git -lfs / 2.0.1. But don’t leave.

  • Additional error information in the environment:

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 \ References .git LocalMediaDir = C: \ Users \ USR123 \ Documents \ GitCloneTest \ Common \ References2.git \ LFS \ 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 = base 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 \ GitLFS GIT_PAGER = cat GIT_PREFIX =

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

Thanks.

0
source share
2 answers

This error comes from the LFS extension if you log into TFS without specifying a domain name and you are trying to click a large file. Go to Control Panel \ User Accounts \ User Account Manager, the Windows credentials tab, and delete the credentials stored for the TFS server. When you git click again from the command line, you will be offered your credentials. Enter your username in the domain: DOMAIN \ USER

+1
source

Since version 2.4.0 Git-Lfs comes with NTLM support. With this, you no longer need to use basic authentication authentication by setting credentials in Windows Credential Manager and Git-Lfs. windows with TFS on-prem.

0
source

All Articles