簡體   English   中英

LFS:找到了.XXXX的Git憑據。您的用戶名必須是DOMAIN \ user格式

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

所以我們嘗試使用內部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)

錯誤:

  1. 轉到SourceTree中的工具 - >選項 - > [Git選項卡]並選擇[使用系統 Git]並嘗試從歷史記錄中檢出文件的版本會導致以下錯誤:

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

  1. 轉到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.exe smudge - Framework4.dll下載對象時出錯:Framework4.dll(ef57f778c9fd50b27144784cd1df55b1b014d564ad6d8d726b156748219b8e5f)

塗抹錯誤:下載錯誤ef57f778c9fd50b27144784cd1df55b1b014d564ad6d8d726b156748219b8e5f:LFS:未找到http:// localhost:8080 / tfs / DefaultCollection / Common / _git / Common%20References的 Git憑據:LFS: http:// localhost:8080 / tfs /的 Git憑據未找到DefaultCollection / Common / _git / Common%20References

我研究和嘗試的內容:

  1. 人們建議使用“Git Credential Manager for Windows(GCM)”來存儲和管理憑據。 這是使用最新的git版本安裝的。 但錯誤仍然存​​在。

  2. 沒有安裝“Windows的Git Credential Manager(GCM)”仍然發生錯誤。

  3. 將Git版本更新到最新版本。 嘗試了git-lfs / 1.5.2和git-lfs / 2.0.1。 但是沒有去。

  4. 有關環境的其他錯誤信息:

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

版本2.4.0開始, Git-Lfs支持NTLM。 有了這個,您不再需要通過在Windows憑據管理器中設置憑據來使用基本身份驗證回退 ,而Git-Lfs應該在TFS本地開箱即用。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM