Microsoft git credential manager for
Author: m | 2025-04-24
Relevant discussion: microsoft/Git-Credential-Manager-for-Windows749. PR to fix the same issue in Git Credential Manager for Windows: microsoft/Git-Credential-Manager
How the Git Credential Managers works microsoft/Git-Credential
Host URL = ' failed.15:58:24.474663 ...uthentication.cs:177 trace: [NoninteractiveLogon] non-interactive logon for ' failed15:58:28.039925 ...\Authority.cs:195 trace: [InteractiveAcquireToken] authority host URL = ' token acquisition for tenant [[tenant-resource-no]] succeeded.15:58:28.039925 ...Authentication.cs:98 trace: [InteractiveLogon] token acquisition for ' succeeded.15:58:28.396543 ...\Authority.cs:533 trace: [GetAccessTokenRequestBody] creating access token scoped to 'vso.code_write vso.packaging' for ' ...\Authority.cs:124 trace: [GeneratePersonalAccessToken] personal access token acquisition for ' succeeded.15:58:29.139559 ...uthentication.cs:450 trace: [GeneratePersonalAccessToken] personal access token created for ' ...\Authority.cs:457 trace: [ValidateSecret] credential validation for ' failed.15:58:29.524626 ...\Common.cs:822 trace: [QueryCredentials] credentials for ' not found.15:58:29.526670 ...\Common.cs:709 trace: [LogEvent] Failed to retrieve Azure Directory credentials for ' run-command.c:662 trace: run_command: 'git credential-manager erase'15:58:30.452224 exec-cmd.c:237 trace: resolved executable dir: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/Common7/IDE/CommonExtensions/Microsoft/TeamFoundation/Team Explorer/Git/mingw64/libexec/git-core15:58:30.454294 git.c:703 trace: exec: git-credential-manager erase15:58:30.454294 run-command.c:662 trace: run_command: git-credential-manager erase15:58:30.585908 ...\Common.cs:744 trace: [Main] git-credential-manager (v1.20.0) 'erase'15:58:30.646704 ...\Git\Where.cs:348 trace: [FindGitInstallations] found 1 Git installation(s).15:58:30.651690 ...Configuration.cs:222 trace: [LoadGitConfiguration] git All config read, 13 entries.15:58:30.689589 ...\Common.cs:85 trace: [CreateAuthentication] detecting authority type for ' ...uthentication.cs:199 trace: [DetectAuthority] ' is Azure DevOps, tenant resource is {[tenant-resource-no]}.15:58:30.709536 ...uthentication.cs:359 trace: [GetAuthentication] AAD authority for tenant '[tenant-resource-no]' detected.15:58:30.747460 ...\Common.cs:140 trace: [CreateAuthentication] authority for ' is Azure Directory.15:58:30.747460 ...\Common.cs:259 trace: [DeleteCredentials] deleting Azure DevOps credentials for ' ...aseSecureStore.cs:59 trace: [Delete] credentials not found for 'git: run-command.c:662 trace: run_command: 'git credential-manager erase'15:58:31.147408 exec-cmd.c:237 trace: resolved executable dir: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/Common7/IDE/CommonExtensions/Microsoft/TeamFoundation/Team Explorer/Git/mingw64/libexec/git-core15:58:31.148438 git.c:703 trace: exec: git-credential-manager erase15:58:31.148438 run-command.c:662 trace: run_command: git-credential-manager erase15:58:31.281008 ...\Common.cs:744 trace: [Main] git-credential-manager (v1.20.0) 'erase'15:58:31.338896 ...\Git\Where.cs:348 trace: [FindGitInstallations] found 1 Git installation(s).15:58:31.344840 ...Configuration.cs:222 trace: [LoadGitConfiguration] git All config read, 13 entries.15:58:31.384772 ...\Common.cs:85 trace: [CreateAuthentication] detecting authority type for ' ...uthentication.cs:223 trace: [DetectAuthority] detected ' as Azure DevOps from GET response.15:58:31.773813 ...uthentication.cs:291 trace: [DetectAuthority] tenant resource for ' is {[tenant-resource-no]}.15:58:31.774811 ...uthentication.cs:359 trace: [GetAuthentication] AAD authority for tenant '[tenant-resource-no]' detected.15:58:31.810715 ...\Common.cs:140 trace: [CreateAuthentication] authority for ' is Azure Directory.15:58:31.810715 ...\Common.cs:259 trace: [DeleteCredentials] deleting Azure DevOps credentials for ' ...aseSecureStore.cs:59 trace: [Delete] credentials not found for 'git: Authentication failed for '
Microsoft Git Credential Manager for Windows
Which Version of GCM are you using ?From a command prompt, run git credential-manager version and paste the output.1.20.0Which service are you trying to connect to Azure DevOps Azure DevOps Server (TFS/on-prem) GitHub GitHub Enterprise Bitbucket Other? - please describe;If AzureDevops Hosted describe your url dev.azure.com/org org.visualstudio.comIf you're using Azure DevOps, can you access the repository in the browser via the same URL? Yes No, I get a permission error. No, for a different reason:If you're using Azure DevOps, and the account picker shows more than one identity as you authenticate, check that you selected the same one that has access on the web. I only see one identity. I checked each and none worked.Expected behaviorI expect to be able to clone my repository using git clone [repo-url]Actual behaviorI see Azure Active Directory dialog box, pick my user and type in my password, then back in Git Bash command line I receive this error: fatal: Authentication failed for '[repo-url]'I should note that the URL I'm cloning was copied from Azure DevOps and as a result it has a format like But the URL in the failure message doesn't have the "[org-name]@" part before dev.azure.com.Set the env variables GCM_TRACE=1 and GIT_TRACE=1 and run your git command. Redact any private information and attach the logGIT_Trace=1 GCM_TRACE=1 git clone exec-cmd.c:237 trace: resolved executable dir: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/Common7/IDE/CommonExtensions/Microsoft/TeamFoundation/Team Explorer/Git/mingw64/bin15:58:20.432601 git.c:439 trace: built-in: git clone ' into '[project-name]'...15:58:20.468546 run-command.c:662 trace: run_command: git remote-https origin ' exec-cmd.c:237 trace: resolved executable dir: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/Common7/IDE/CommonExtensions/Microsoft/TeamFoundation/Team Explorer/Git/mingw64/libexec/git-core15:58:20.556270 git.c:703 trace: exec: git-remote-https origin ' run-command.c:662 trace: run_command: git-remote-https origin ' exec-cmd.c:237 trace: resolved executable dir: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/Common7/IDE/CommonExtensions/Microsoft/TeamFoundation/Team Explorer/Git/mingw64/libexec/git-core15:58:22.126447 run-command.c:662 trace: run_command: 'git credential-manager get'15:58:22.472522 exec-cmd.c:237 trace: resolved executable dir: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/Common7/IDE/CommonExtensions/Microsoft/TeamFoundation/Team Explorer/Git/mingw64/libexec/git-core15:58:22.473519 git.c:703 trace: exec: git-credential-manager get15:58:22.473519 run-command.c:662 trace: run_command: git-credential-manager get15:58:22.607203 ...\Common.cs:744 trace: [Main] git-credential-manager (v1.20.0) 'get'15:58:22.668995 ...\Git\Where.cs:348 trace: [FindGitInstallations] found 1 Git installation(s).15:58:22.675019 ...Configuration.cs:222 trace: [LoadGitConfiguration] git All config read, 13 entries.15:58:22.724888 ...\Common.cs:85 trace: [CreateAuthentication] detecting authority type for ' ...uthentication.cs:223 trace: [DetectAuthority] detected ' as Azure DevOps from GET response.15:58:23.149713 ...uthentication.cs:291 trace: [DetectAuthority] tenant resource for ' is {[tenant-resource-no]}.15:58:23.150711 ...uthentication.cs:359 trace: [GetAuthentication] AAD authority for tenant '[tenant-resource-no]' detected.15:58:23.186636 ...\Common.cs:140 trace: [CreateAuthentication] authority for ' is Azure Directory.15:58:23.186636 ...\Common.cs:765 trace: [QueryCredentials] querying 'AzureDirectory' for credentials.15:58:23.192647 ...uthentication.cs:384 trace: [GetCredentials] credentials for ' found.15:58:23.478327 ...\Authority.cs:457 trace: [ValidateSecret] credential validation for ' failed.15:58:24.474663 ...\Authority.cs:247 trace: [NoninteractiveAcquireToken] token acquisition for authorityFork of Microsoft's Git Credential Manager for
Found 1 Git installation(s).12:10:38.008925 ...Configuration.cs:222 trace: [LoadGitConfiguration] git All config read, 16 entries.12:10:38.081340 ...\Common.cs:85 trace: [CreateAuthentication] detecting authority type for ' ...uthentication.cs:199 trace: [DetectAuthority] ' is Azure DevOps, tenant resource is {xxxxxxxxxxxxxxxxxxxxxxx}.12:10:38.108125 ...uthentication.cs:359 trace: [GetAuthentication] AAD authority for tenant 'xxxxxxxxxxxxxxxxxxxxxxx' detected.12:10:38.119037 ...\Common.cs:140 trace: [CreateAuthentication] authority for ' is Azure Directory.12:10:38.119549 ...\Common.cs:259 trace: [DeleteCredentials] deleting Azure DevOps credentials for ' ...aseSecureStore.cs:59 trace: [Delete] credentials not found for 'git: run-command.c:643 trace: run_command: 'git credential-manager erase'12:10:38.288172 exec-cmd.c:236 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core12:10:38.289661 git.c:676 trace: exec: git-credential-manager erase12:10:38.289661 run-command.c:643 trace: run_command: git-credential-manager erase12:10:38.375468 ...\Common.cs:744 trace: [Main] git-credential-manager (v1.18.5) 'erase'12:10:38.474669 ...\Git\Where.cs:348 trace: [FindGitInstallations] found 1 Git installation(s).12:10:38.484589 ...Configuration.cs:222 trace: [LoadGitConfiguration] git All config read, 16 entries.12:10:38.548076 ...\Common.cs:85 trace: [CreateAuthentication] detecting authority type for ' ...uthentication.cs:199 trace: [DetectAuthority] ' is Azure DevOps, tenant resource is {xxxxxxxxxxxxxxxxxxxxxxx}.12:10:38.574365 ...uthentication.cs:359 trace: [GetAuthentication] AAD authority for tenant 'xxxxxxxxxxxxxxxxxxxxxxx' detected.12:10:38.583788 ...\Common.cs:140 trace: [CreateAuthentication] authority for ' is Azure Directory.12:10:38.584285 ...\Common.cs:259 trace: [DeleteCredentials] deleting Azure DevOps credentials for ' ...aseSecureStore.cs:59 trace: [Delete] credentials not found for 'git: Authentication failed for '. Relevant discussion: microsoft/Git-Credential-Manager-for-Windows749. PR to fix the same issue in Git Credential Manager for Windows: microsoft/Git-Credential-Manager Manager flow: git-credential finds that credential.helper=manager and invokes git-credential-manager with the get option. git-credential-manager lacks credentials for the . gitHow the Git Credential Managers works microsoft/Git
Which Version of GCM are you using ?1.18.x .. 1.20.0Which service are you trying to connect toEvery.Expected behaviorit doesn't hang. :)Actual behaviorgit-credential-manager.exe hangs immediately, no matter it started from git or directly via command line;config parameter modalprompt was not set, setting of modalprompt to true/false or unset it again changing nothing.Set the env variables GCM_TRACE=1 and GIT_TRACE=1 and run your git command. Redact any private information and attach the logSometimes it hangs with get sometimes with store, like here: git push ... 23:25:14.228671 exec-cmd.c:237 trace: resolved executable dir: C:/Dev/Git/mingw64/bin 23:25:14.329671 git.c:439 trace: built-in: git push --progress gh-origin test/travis-cmdMZ-timing 23:25:14.381671 run-command.c:663 trace: run_command: git remote-https gh-origin 23:25:14.423671 exec-cmd.c:237 trace: resolved executable dir: C:/Dev/Git/mingw64/libexec/git-core 23:25:14.428671 git.c:702 trace: exec: git-remote-https gh-origin 23:25:14.428671 run-command.c:663 trace: run_command: git-remote-https gh-origin 23:25:14.473671 exec-cmd.c:237 trace: resolved executable dir: C:/Dev/Git/mingw64/libexec/git-core 23:25:15.053671 run-command.c:663 trace: run_command: 'git credential-manager get' 23:25:15.226671 exec-cmd.c:237 trace: resolved executable dir: C:/Dev/Git/mingw64/libexec/git-core 23:25:15.230671 git.c:702 trace: exec: git-credential-manager get 23:25:15.230671 run-command.c:663 trace: run_command: git-credential-manager get 23:25:15.371671 ...\Common.cs:744 trace: [Main] git-credential-manager (v1.20.0) 'get' 23:25:15.441671 ...\Git\Where.cs:348 trace: [FindGitInstallations] found 1 Git installation(s). 23:25:15.448671 ...Configuration.cs:222 trace: [LoadGitConfiguration] git All config read, 33 entries. 23:25:15.451671 ...\Common.cs:579 trace: [LoadOperationArguments] http.proxy = ' 23:25:15.452671 ...tionArguments.cs:605 trace: [SetProxy] successfully set proxy to ' 23:25:15.512671 ...\Common.cs:85 trace: [CreateAuthentication] detecting authority type for ' 23:25:15.531671 ...uthentication.cs:151 trace: [GetAuthentication] created GitHub authentication for ' 23:25:15.531671 ...\Common.cs:176 trace: [CreateAuthentication] authority for ' is GitHub. 23:25:15.532671 ...\Common.cs:765 trace: [QueryCredentials] querying 'GitHub' for credentials. 23:25:15.546671 ...uthentication.cs:175 trace: [GetCredentials] credentials for ' found. 23:25:16.653671 ...\Authority.cs:200 trace: [ValidateCredentials] credential validation for ' succeeded. 23:25:16.655671 ...\Common.cs:873 trace: [QueryCredentials] credentials for ' found. 23:25:16.656671 ...\Common.cs:709 trace: [LogEvent] GitHub credentials for ' successfully retrieved. 23:25:17.653671 run-command.c:663 trace: run_command: 'git credential-manager store' 23:25:17.763671 exec-cmd.c:237 trace: resolved executable dir: C:/Dev/Git/mingw64/libexec/git-core 23:25:17.766671 git.c:702 trace: exec: git-credential-manager store 23:25:17.766671 run-command.c:663 trace: run_command: git-credential-manager store- **** process git-credential-manager hangs ****- **** process git-credential-manager killed, and then it logging further **** 23:26:39.343671 run-command.c:663 trace: run_command: 'git credential-wincred store' 23:26:39.455671 exec-cmd.c:237 trace: resolved executable dir: C:/Dev/Git/mingw64/libexec/git-core 23:26:39.566671 git.c:702 trace: exec: git-credential-wincred store 23:26:39.566671 run-command.c:663 trace: run_command: git-credential-wincred store ..."> > git push ... 23:25:14.228671 exec-cmd.c:237 trace: resolved executable dir: C:/Dev/Git/mingw64/bin 23:25:14.329671 git.c:439 trace:Credential Manager not working. Issue 823 microsoft/Git-Credential
Built-in: git push --progress gh-origin test/travis-cmdMZ-timing 23:25:14.381671 run-command.c:663 trace: run_command: git remote-https gh-origin 23:25:14.423671 exec-cmd.c:237 trace: resolved executable dir: C:/Dev/Git/mingw64/libexec/git-core 23:25:14.428671 git.c:702 trace: exec: git-remote-https gh-origin 23:25:14.428671 run-command.c:663 trace: run_command: git-remote-https gh-origin 23:25:14.473671 exec-cmd.c:237 trace: resolved executable dir: C:/Dev/Git/mingw64/libexec/git-core 23:25:15.053671 run-command.c:663 trace: run_command: 'git credential-manager get' 23:25:15.226671 exec-cmd.c:237 trace: resolved executable dir: C:/Dev/Git/mingw64/libexec/git-core 23:25:15.230671 git.c:702 trace: exec: git-credential-manager get 23:25:15.230671 run-command.c:663 trace: run_command: git-credential-manager get 23:25:15.371671 ...\Common.cs:744 trace: [Main] git-credential-manager (v1.20.0) 'get' 23:25:15.441671 ...\Git\Where.cs:348 trace: [FindGitInstallations] found 1 Git installation(s). 23:25:15.448671 ...Configuration.cs:222 trace: [LoadGitConfiguration] git All config read, 33 entries. 23:25:15.451671 ...\Common.cs:579 trace: [LoadOperationArguments] http.proxy = ' 23:25:15.452671 ...tionArguments.cs:605 trace: [SetProxy] successfully set proxy to ' 23:25:15.512671 ...\Common.cs:85 trace: [CreateAuthentication] detecting authority type for ' 23:25:15.531671 ...uthentication.cs:151 trace: [GetAuthentication] created GitHub authentication for ' 23:25:15.531671 ...\Common.cs:176 trace: [CreateAuthentication] authority for ' is GitHub. 23:25:15.532671 ...\Common.cs:765 trace: [QueryCredentials] querying 'GitHub' for credentials. 23:25:15.546671 ...uthentication.cs:175 trace: [GetCredentials] credentials for ' found. 23:25:16.653671 ...\Authority.cs:200 trace: [ValidateCredentials] credential validation for ' succeeded. 23:25:16.655671 ...\Common.cs:873 trace: [QueryCredentials] credentials for ' found. 23:25:16.656671 ...\Common.cs:709 trace: [LogEvent] GitHub credentials for ' successfully retrieved. 23:25:17.653671 run-command.c:663 trace: run_command: 'git credential-manager store' 23:25:17.763671 exec-cmd.c:237 trace: resolved executable dir: C:/Dev/Git/mingw64/libexec/git-core 23:25:17.766671 git.c:702 trace: exec: git-credential-manager store 23:25:17.766671 run-command.c:663 trace: run_command: git-credential-manager store- **** process git-credential-manager hangs ****- **** process git-credential-manager killed, and then it logging further **** 23:26:39.343671 run-command.c:663 trace: run_command: 'git credential-wincred store' 23:26:39.455671 exec-cmd.c:237 trace: resolved executable dir: C:/Dev/Git/mingw64/libexec/git-core 23:26:39.566671 git.c:702 trace: exec: git-credential-wincred store 23:26:39.566671 run-command.c:663 trace: run_command: git-credential-wincred store ...Sometimes git-credential-manager get produces nothing, sometimes it results to one line only before it hangs:... run_command: git-credential-manager get23:28:54.019671 ...\Common.cs:744 trace: [Main] git-credential-manager (v1.20.0) 'get'^CCall-stacks of the hanging processIt has no busy-wait, looks stable (not changing in 5 minutes), like a dead-lock. 1. Thread (2392)ntdll.dll!ZwWaitForSingleObject+0xantdll.dll!RtlImageDirectoryEntryToData+0x118ntdll.dll!RtlEnterCriticalSection+0xd1rpcrt4.dll!UuidCreate+0x1dc5rpcrt4.dll!I_RpcBindingIsServerLocal+0x12619advapi32.dll!RegEnumKeyExW+0x13aadvapi32.dll!RegEnumKeyExW+0xberpcrt4.dll!RpcBindingFree+0x320rpcrt4.dll!RpcAsyncRegisterInfo+0x10ffrpcrt4.dll!Ndr64AsyncClientCall+0x9darpcrt4.dll!Ndr64AsyncClientCall+0xc9brpcrt4.dll!NdrClientCall3+0xf5advapi32.dll!LsaOpenPolicy+0xb9advapi32.dll!LsaOpenPolicy+0x56!RemoveShellExt+0x16b!RemoveShellExt+0x3c7!InstallSysMenuHook+0x26c8ntdll.dll!RtlDeactivateActivationContextUnsafeFast+0x34entdll.dll!EtwDeliverDataBlock+0xa44ntdll.dll!LdrLoadDll+0xedKernelBase.dll!LoadLibraryExW+0xeauser32.dll!PostThreadMessageW+0xe1ntdll.dll!KiUserCallbackDispatcher+0x1fuser32.dll!SendMessageTimeoutW+0x95auser32.dll!SendMessageTimeoutW+0x8d7user32.dll!SendMessageTimeoutW+0xb18user32.dll!CreateWindowExW+0x70ole32.dll!StringFromGUID2+0x2952ole32.dll!StringFromGUID2+0x289dole32.dll!CoInitializeEx+0x178!InstallCustomModule+0x3e6c8!SetRuntimeInfo+0x1be4!PreBindAssemblyEx+0x1a80!SetRuntimeInfo+0xa83!SetRuntimeInfo+0xa01!CorExeMain+0x14!CorExeMain+0x71!CorExeMain+0x69kernel32.dll!BaseThreadInitThunk+0xdntdll.dll!RtlUserThreadStart+0x1d 2. Thread (7956)ntoskrnl.exe!KiCpuId+0xaantoskrnl.exe!ObfReferenceObject+0x792ntoskrnl.exe!KeWaitForMutexObject+0x1a3ntoskrnl.exe!CcGetFlushedValidData+0xc34ntoskrnl.exe!KeInsertQueueApc+0x605ntoskrnl.exe!ObfReferenceObject+0x99dntoskrnl.exe!KeWaitForMultipleObjects+0x272ntoskrnl.exe!NtRequestWaitReplyPort+0x335ntoskrnl.exe!FsRtlReleaseFile+0xc6dntoskrnl.exe!longjmp+0x5bf3ntdll.dll!NtWaitForMultipleObjects+0xaKernelBase.dll!GetCurrentProcess+0x40kernel32.dll!WaitForMultipleObjectsEx+0xb3!GC_Initialize+0x1a7f!GC_Initialize+0x199b!GC_Initialize+0x1891kernel32.dll!BaseThreadInitThunk+0xdntdll.dll!RtlUserThreadStart+0x1d 3. Thread (9252)ntoskrnl.exe!KiCpuId+0xaantoskrnl.exe!ObfReferenceObject+0x792ntoskrnl.exe!KeWaitForMutexObject+0x1a3ntoskrnl.exe!CcGetFlushedValidData+0xc34ntoskrnl.exe!KeInsertQueueApc+0x605ntoskrnl.exe!ObfReferenceObject+0x99dntoskrnl.exe!KeWaitForMutexObject+0x1a3ntoskrnl.exe!NtWaitForSingleObject+0xdentoskrnl.exe!longjmp+0x5bf3ntdll.dll!ZwWaitForSingleObject+0xantdll.dll!RtlImageDirectoryEntryToData+0x118ntdll.dll!RtlEnterCriticalSection+0xd1ntdll.dll!LdrQueryModuleServiceTags+0x13fntdll.dll!CsrIdentifyAlertableThread+0x9dntdll.dll!EtwSendNotification+0x16dntdll.dll!RtlQueryProcessDebugInformation+0x371ntdll.dll!EtwDeliverDataBlock+0xf00kernel32.dll!BaseThreadInitThunk+0xdntdll.dll!RtlUserThreadStart+0x1d 4. Thread (10776)ntdll.dll!ZwWaitForSingleObject+0xantdll.dll!RtlImageDirectoryEntryToData+0x118ntdll.dll!RtlEnterCriticalSection+0xd1ntdll.dll!EtwDeliverDataBlock+0x777ntdll.dll!LdrLoadDll+0xedKernelBase.dll!LoadLibraryExW+0xearpcrt4.dll!UuidCreate+0x1de3rpcrt4.dll!I_RpcBindingIsServerLocal+0x12619advapi32.dll!RegEnumKeyExW+0x13aadvapi32.dll!RegEnumKeyExW+0xberpcrt4.dll!RpcBindingFree+0x320rpcrt4.dll!RpcAsyncRegisterInfo+0x10ffrpcrt4.dll!Ndr64AsyncClientCall+0x9darpcrt4.dll!Ndr64AsyncClientCall+0xc9brpcrt4.dll!NdrClientCall3+0xf5advapi32.dll!LsaOpenPolicy+0xb9advapi32.dll!LsaOpenPolicy+0x56advapi32.dll!ConvertStringSidToSidW+0x276advapi32.dll!ConvertStringSecurityDescriptorToSecurityDescriptorW+0xa32advapi32.dll!ConvertStringSecurityDescriptorToSecurityDescriptorW+0x3a!IsOS+0x20f8!IsOS+0x1f49!CorExeMain+0x3255!PreBindAssemblyEx+0x1434!CoUninitializeEE+0x68c5kernel32.dll!BaseThreadInitThunk+0xdntdll.dll!RtlUserThreadStart+0x1dRelated issueI thought it could be similar #703, but it looks different (trace show Common.cs:744 only or even nothing and then hangs immediately).Credential Manager Hangs Issue 104 microsoft/Git-Credential
Which Version of GCM are you using ?From a command prompt, run git credential-manager version and paste the output.12:04:47.644870 exec-cmd.c:236 trace: resolved executable dir: C:/Program Files/Git/mingw64/bin12:04:47.647339 git.c:676 trace: exec: git-credential-manager version12:04:47.647339 run-command.c:643 trace: run_command: git-credential-manager version12:04:47.923578 ...\Common.cs:744 trace: [Main] git-credential-manager (v1.18.5) 'version'Git Credential Manager for Windows version 1.18.5Which service are you trying to connect to Azure DevOps Azure DevOps Server (TFS/on-prem) GitHub GitHub Enterprise Bitbucket Other? - please describe;If AzureDevops Hosted describe your url dev.azure.com/org org.visualstudio.comIf you're using Azure DevOps, can you access the repository in the browser via the same URL? Yes No, I get a permission error. No, for a different reason:If you're using Azure DevOps, and the account picker shows more than one identity as you authenticate, check that you selected the same one that has access on the web. I only see one identity. I checked each and none worked. I'm not seeing any Azure prompt window.EnvironmentSO: Clean Windows 10 LTSC (updated). Was formatted 2 days ago and it's not a AD joined PC.GIT version: 2.21.0.windows.1GCM version: 1.18.5GitConfig file untouched.Expected behaviorAfter run a git clone, an Azure prompt should appear to enter my credentials or, from VS Code, I should be able to clone my repo using the "new" way.Actual behaviorIt throws the typical error and nothing happens... no Azure windows asking to enter my creds. I'm not having the opportunity to enter any credential before the error appears and there's no any git credential already set in my Windows Credential repository. No problems accessing via. Relevant discussion: microsoft/Git-Credential-Manager-for-Windows749. PR to fix the same issue in Git Credential Manager for Windows: microsoft/Git-Credential-ManagerComments
Host URL = ' failed.15:58:24.474663 ...uthentication.cs:177 trace: [NoninteractiveLogon] non-interactive logon for ' failed15:58:28.039925 ...\Authority.cs:195 trace: [InteractiveAcquireToken] authority host URL = ' token acquisition for tenant [[tenant-resource-no]] succeeded.15:58:28.039925 ...Authentication.cs:98 trace: [InteractiveLogon] token acquisition for ' succeeded.15:58:28.396543 ...\Authority.cs:533 trace: [GetAccessTokenRequestBody] creating access token scoped to 'vso.code_write vso.packaging' for ' ...\Authority.cs:124 trace: [GeneratePersonalAccessToken] personal access token acquisition for ' succeeded.15:58:29.139559 ...uthentication.cs:450 trace: [GeneratePersonalAccessToken] personal access token created for ' ...\Authority.cs:457 trace: [ValidateSecret] credential validation for ' failed.15:58:29.524626 ...\Common.cs:822 trace: [QueryCredentials] credentials for ' not found.15:58:29.526670 ...\Common.cs:709 trace: [LogEvent] Failed to retrieve Azure Directory credentials for ' run-command.c:662 trace: run_command: 'git credential-manager erase'15:58:30.452224 exec-cmd.c:237 trace: resolved executable dir: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/Common7/IDE/CommonExtensions/Microsoft/TeamFoundation/Team Explorer/Git/mingw64/libexec/git-core15:58:30.454294 git.c:703 trace: exec: git-credential-manager erase15:58:30.454294 run-command.c:662 trace: run_command: git-credential-manager erase15:58:30.585908 ...\Common.cs:744 trace: [Main] git-credential-manager (v1.20.0) 'erase'15:58:30.646704 ...\Git\Where.cs:348 trace: [FindGitInstallations] found 1 Git installation(s).15:58:30.651690 ...Configuration.cs:222 trace: [LoadGitConfiguration] git All config read, 13 entries.15:58:30.689589 ...\Common.cs:85 trace: [CreateAuthentication] detecting authority type for ' ...uthentication.cs:199 trace: [DetectAuthority] ' is Azure DevOps, tenant resource is {[tenant-resource-no]}.15:58:30.709536 ...uthentication.cs:359 trace: [GetAuthentication] AAD authority for tenant '[tenant-resource-no]' detected.15:58:30.747460 ...\Common.cs:140 trace: [CreateAuthentication] authority for ' is Azure Directory.15:58:30.747460 ...\Common.cs:259 trace: [DeleteCredentials] deleting Azure DevOps credentials for ' ...aseSecureStore.cs:59 trace: [Delete] credentials not found for 'git: run-command.c:662 trace: run_command: 'git credential-manager erase'15:58:31.147408 exec-cmd.c:237 trace: resolved executable dir: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/Common7/IDE/CommonExtensions/Microsoft/TeamFoundation/Team Explorer/Git/mingw64/libexec/git-core15:58:31.148438 git.c:703 trace: exec: git-credential-manager erase15:58:31.148438 run-command.c:662 trace: run_command: git-credential-manager erase15:58:31.281008 ...\Common.cs:744 trace: [Main] git-credential-manager (v1.20.0) 'erase'15:58:31.338896 ...\Git\Where.cs:348 trace: [FindGitInstallations] found 1 Git installation(s).15:58:31.344840 ...Configuration.cs:222 trace: [LoadGitConfiguration] git All config read, 13 entries.15:58:31.384772 ...\Common.cs:85 trace: [CreateAuthentication] detecting authority type for ' ...uthentication.cs:223 trace: [DetectAuthority] detected ' as Azure DevOps from GET response.15:58:31.773813 ...uthentication.cs:291 trace: [DetectAuthority] tenant resource for ' is {[tenant-resource-no]}.15:58:31.774811 ...uthentication.cs:359 trace: [GetAuthentication] AAD authority for tenant '[tenant-resource-no]' detected.15:58:31.810715 ...\Common.cs:140 trace: [CreateAuthentication] authority for ' is Azure Directory.15:58:31.810715 ...\Common.cs:259 trace: [DeleteCredentials] deleting Azure DevOps credentials for ' ...aseSecureStore.cs:59 trace: [Delete] credentials not found for 'git: Authentication failed for '
2025-04-23Which Version of GCM are you using ?From a command prompt, run git credential-manager version and paste the output.1.20.0Which service are you trying to connect to Azure DevOps Azure DevOps Server (TFS/on-prem) GitHub GitHub Enterprise Bitbucket Other? - please describe;If AzureDevops Hosted describe your url dev.azure.com/org org.visualstudio.comIf you're using Azure DevOps, can you access the repository in the browser via the same URL? Yes No, I get a permission error. No, for a different reason:If you're using Azure DevOps, and the account picker shows more than one identity as you authenticate, check that you selected the same one that has access on the web. I only see one identity. I checked each and none worked.Expected behaviorI expect to be able to clone my repository using git clone [repo-url]Actual behaviorI see Azure Active Directory dialog box, pick my user and type in my password, then back in Git Bash command line I receive this error: fatal: Authentication failed for '[repo-url]'I should note that the URL I'm cloning was copied from Azure DevOps and as a result it has a format like But the URL in the failure message doesn't have the "[org-name]@" part before dev.azure.com.Set the env variables GCM_TRACE=1 and GIT_TRACE=1 and run your git command. Redact any private information and attach the logGIT_Trace=1 GCM_TRACE=1 git clone exec-cmd.c:237 trace: resolved executable dir: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/Common7/IDE/CommonExtensions/Microsoft/TeamFoundation/Team Explorer/Git/mingw64/bin15:58:20.432601 git.c:439 trace: built-in: git clone ' into '[project-name]'...15:58:20.468546 run-command.c:662 trace: run_command: git remote-https origin ' exec-cmd.c:237 trace: resolved executable dir: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/Common7/IDE/CommonExtensions/Microsoft/TeamFoundation/Team Explorer/Git/mingw64/libexec/git-core15:58:20.556270 git.c:703 trace: exec: git-remote-https origin ' run-command.c:662 trace: run_command: git-remote-https origin ' exec-cmd.c:237 trace: resolved executable dir: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/Common7/IDE/CommonExtensions/Microsoft/TeamFoundation/Team Explorer/Git/mingw64/libexec/git-core15:58:22.126447 run-command.c:662 trace: run_command: 'git credential-manager get'15:58:22.472522 exec-cmd.c:237 trace: resolved executable dir: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/Common7/IDE/CommonExtensions/Microsoft/TeamFoundation/Team Explorer/Git/mingw64/libexec/git-core15:58:22.473519 git.c:703 trace: exec: git-credential-manager get15:58:22.473519 run-command.c:662 trace: run_command: git-credential-manager get15:58:22.607203 ...\Common.cs:744 trace: [Main] git-credential-manager (v1.20.0) 'get'15:58:22.668995 ...\Git\Where.cs:348 trace: [FindGitInstallations] found 1 Git installation(s).15:58:22.675019 ...Configuration.cs:222 trace: [LoadGitConfiguration] git All config read, 13 entries.15:58:22.724888 ...\Common.cs:85 trace: [CreateAuthentication] detecting authority type for ' ...uthentication.cs:223 trace: [DetectAuthority] detected ' as Azure DevOps from GET response.15:58:23.149713 ...uthentication.cs:291 trace: [DetectAuthority] tenant resource for ' is {[tenant-resource-no]}.15:58:23.150711 ...uthentication.cs:359 trace: [GetAuthentication] AAD authority for tenant '[tenant-resource-no]' detected.15:58:23.186636 ...\Common.cs:140 trace: [CreateAuthentication] authority for ' is Azure Directory.15:58:23.186636 ...\Common.cs:765 trace: [QueryCredentials] querying 'AzureDirectory' for credentials.15:58:23.192647 ...uthentication.cs:384 trace: [GetCredentials] credentials for ' found.15:58:23.478327 ...\Authority.cs:457 trace: [ValidateSecret] credential validation for ' failed.15:58:24.474663 ...\Authority.cs:247 trace: [NoninteractiveAcquireToken] token acquisition for authority
2025-04-03Which Version of GCM are you using ?1.18.x .. 1.20.0Which service are you trying to connect toEvery.Expected behaviorit doesn't hang. :)Actual behaviorgit-credential-manager.exe hangs immediately, no matter it started from git or directly via command line;config parameter modalprompt was not set, setting of modalprompt to true/false or unset it again changing nothing.Set the env variables GCM_TRACE=1 and GIT_TRACE=1 and run your git command. Redact any private information and attach the logSometimes it hangs with get sometimes with store, like here: git push ... 23:25:14.228671 exec-cmd.c:237 trace: resolved executable dir: C:/Dev/Git/mingw64/bin 23:25:14.329671 git.c:439 trace: built-in: git push --progress gh-origin test/travis-cmdMZ-timing 23:25:14.381671 run-command.c:663 trace: run_command: git remote-https gh-origin 23:25:14.423671 exec-cmd.c:237 trace: resolved executable dir: C:/Dev/Git/mingw64/libexec/git-core 23:25:14.428671 git.c:702 trace: exec: git-remote-https gh-origin 23:25:14.428671 run-command.c:663 trace: run_command: git-remote-https gh-origin 23:25:14.473671 exec-cmd.c:237 trace: resolved executable dir: C:/Dev/Git/mingw64/libexec/git-core 23:25:15.053671 run-command.c:663 trace: run_command: 'git credential-manager get' 23:25:15.226671 exec-cmd.c:237 trace: resolved executable dir: C:/Dev/Git/mingw64/libexec/git-core 23:25:15.230671 git.c:702 trace: exec: git-credential-manager get 23:25:15.230671 run-command.c:663 trace: run_command: git-credential-manager get 23:25:15.371671 ...\Common.cs:744 trace: [Main] git-credential-manager (v1.20.0) 'get' 23:25:15.441671 ...\Git\Where.cs:348 trace: [FindGitInstallations] found 1 Git installation(s). 23:25:15.448671 ...Configuration.cs:222 trace: [LoadGitConfiguration] git All config read, 33 entries. 23:25:15.451671 ...\Common.cs:579 trace: [LoadOperationArguments] http.proxy = ' 23:25:15.452671 ...tionArguments.cs:605 trace: [SetProxy] successfully set proxy to ' 23:25:15.512671 ...\Common.cs:85 trace: [CreateAuthentication] detecting authority type for ' 23:25:15.531671 ...uthentication.cs:151 trace: [GetAuthentication] created GitHub authentication for ' 23:25:15.531671 ...\Common.cs:176 trace: [CreateAuthentication] authority for ' is GitHub. 23:25:15.532671 ...\Common.cs:765 trace: [QueryCredentials] querying 'GitHub' for credentials. 23:25:15.546671 ...uthentication.cs:175 trace: [GetCredentials] credentials for ' found. 23:25:16.653671 ...\Authority.cs:200 trace: [ValidateCredentials] credential validation for ' succeeded. 23:25:16.655671 ...\Common.cs:873 trace: [QueryCredentials] credentials for ' found. 23:25:16.656671 ...\Common.cs:709 trace: [LogEvent] GitHub credentials for ' successfully retrieved. 23:25:17.653671 run-command.c:663 trace: run_command: 'git credential-manager store' 23:25:17.763671 exec-cmd.c:237 trace: resolved executable dir: C:/Dev/Git/mingw64/libexec/git-core 23:25:17.766671 git.c:702 trace: exec: git-credential-manager store 23:25:17.766671 run-command.c:663 trace: run_command: git-credential-manager store- **** process git-credential-manager hangs ****- **** process git-credential-manager killed, and then it logging further **** 23:26:39.343671 run-command.c:663 trace: run_command: 'git credential-wincred store' 23:26:39.455671 exec-cmd.c:237 trace: resolved executable dir: C:/Dev/Git/mingw64/libexec/git-core 23:26:39.566671 git.c:702 trace: exec: git-credential-wincred store 23:26:39.566671 run-command.c:663 trace: run_command: git-credential-wincred store ..."> > git push ... 23:25:14.228671 exec-cmd.c:237 trace: resolved executable dir: C:/Dev/Git/mingw64/bin 23:25:14.329671 git.c:439 trace:
2025-04-17Built-in: git push --progress gh-origin test/travis-cmdMZ-timing 23:25:14.381671 run-command.c:663 trace: run_command: git remote-https gh-origin 23:25:14.423671 exec-cmd.c:237 trace: resolved executable dir: C:/Dev/Git/mingw64/libexec/git-core 23:25:14.428671 git.c:702 trace: exec: git-remote-https gh-origin 23:25:14.428671 run-command.c:663 trace: run_command: git-remote-https gh-origin 23:25:14.473671 exec-cmd.c:237 trace: resolved executable dir: C:/Dev/Git/mingw64/libexec/git-core 23:25:15.053671 run-command.c:663 trace: run_command: 'git credential-manager get' 23:25:15.226671 exec-cmd.c:237 trace: resolved executable dir: C:/Dev/Git/mingw64/libexec/git-core 23:25:15.230671 git.c:702 trace: exec: git-credential-manager get 23:25:15.230671 run-command.c:663 trace: run_command: git-credential-manager get 23:25:15.371671 ...\Common.cs:744 trace: [Main] git-credential-manager (v1.20.0) 'get' 23:25:15.441671 ...\Git\Where.cs:348 trace: [FindGitInstallations] found 1 Git installation(s). 23:25:15.448671 ...Configuration.cs:222 trace: [LoadGitConfiguration] git All config read, 33 entries. 23:25:15.451671 ...\Common.cs:579 trace: [LoadOperationArguments] http.proxy = ' 23:25:15.452671 ...tionArguments.cs:605 trace: [SetProxy] successfully set proxy to ' 23:25:15.512671 ...\Common.cs:85 trace: [CreateAuthentication] detecting authority type for ' 23:25:15.531671 ...uthentication.cs:151 trace: [GetAuthentication] created GitHub authentication for ' 23:25:15.531671 ...\Common.cs:176 trace: [CreateAuthentication] authority for ' is GitHub. 23:25:15.532671 ...\Common.cs:765 trace: [QueryCredentials] querying 'GitHub' for credentials. 23:25:15.546671 ...uthentication.cs:175 trace: [GetCredentials] credentials for ' found. 23:25:16.653671 ...\Authority.cs:200 trace: [ValidateCredentials] credential validation for ' succeeded. 23:25:16.655671 ...\Common.cs:873 trace: [QueryCredentials] credentials for ' found. 23:25:16.656671 ...\Common.cs:709 trace: [LogEvent] GitHub credentials for ' successfully retrieved. 23:25:17.653671 run-command.c:663 trace: run_command: 'git credential-manager store' 23:25:17.763671 exec-cmd.c:237 trace: resolved executable dir: C:/Dev/Git/mingw64/libexec/git-core 23:25:17.766671 git.c:702 trace: exec: git-credential-manager store 23:25:17.766671 run-command.c:663 trace: run_command: git-credential-manager store- **** process git-credential-manager hangs ****- **** process git-credential-manager killed, and then it logging further **** 23:26:39.343671 run-command.c:663 trace: run_command: 'git credential-wincred store' 23:26:39.455671 exec-cmd.c:237 trace: resolved executable dir: C:/Dev/Git/mingw64/libexec/git-core 23:26:39.566671 git.c:702 trace: exec: git-credential-wincred store 23:26:39.566671 run-command.c:663 trace: run_command: git-credential-wincred store ...Sometimes git-credential-manager get produces nothing, sometimes it results to one line only before it hangs:... run_command: git-credential-manager get23:28:54.019671 ...\Common.cs:744 trace: [Main] git-credential-manager (v1.20.0) 'get'^CCall-stacks of the hanging processIt has no busy-wait, looks stable (not changing in 5 minutes), like a dead-lock. 1. Thread (2392)ntdll.dll!ZwWaitForSingleObject+0xantdll.dll!RtlImageDirectoryEntryToData+0x118ntdll.dll!RtlEnterCriticalSection+0xd1rpcrt4.dll!UuidCreate+0x1dc5rpcrt4.dll!I_RpcBindingIsServerLocal+0x12619advapi32.dll!RegEnumKeyExW+0x13aadvapi32.dll!RegEnumKeyExW+0xberpcrt4.dll!RpcBindingFree+0x320rpcrt4.dll!RpcAsyncRegisterInfo+0x10ffrpcrt4.dll!Ndr64AsyncClientCall+0x9darpcrt4.dll!Ndr64AsyncClientCall+0xc9brpcrt4.dll!NdrClientCall3+0xf5advapi32.dll!LsaOpenPolicy+0xb9advapi32.dll!LsaOpenPolicy+0x56!RemoveShellExt+0x16b!RemoveShellExt+0x3c7!InstallSysMenuHook+0x26c8ntdll.dll!RtlDeactivateActivationContextUnsafeFast+0x34entdll.dll!EtwDeliverDataBlock+0xa44ntdll.dll!LdrLoadDll+0xedKernelBase.dll!LoadLibraryExW+0xeauser32.dll!PostThreadMessageW+0xe1ntdll.dll!KiUserCallbackDispatcher+0x1fuser32.dll!SendMessageTimeoutW+0x95auser32.dll!SendMessageTimeoutW+0x8d7user32.dll!SendMessageTimeoutW+0xb18user32.dll!CreateWindowExW+0x70ole32.dll!StringFromGUID2+0x2952ole32.dll!StringFromGUID2+0x289dole32.dll!CoInitializeEx+0x178!InstallCustomModule+0x3e6c8!SetRuntimeInfo+0x1be4!PreBindAssemblyEx+0x1a80!SetRuntimeInfo+0xa83!SetRuntimeInfo+0xa01!CorExeMain+0x14!CorExeMain+0x71!CorExeMain+0x69kernel32.dll!BaseThreadInitThunk+0xdntdll.dll!RtlUserThreadStart+0x1d 2. Thread (7956)ntoskrnl.exe!KiCpuId+0xaantoskrnl.exe!ObfReferenceObject+0x792ntoskrnl.exe!KeWaitForMutexObject+0x1a3ntoskrnl.exe!CcGetFlushedValidData+0xc34ntoskrnl.exe!KeInsertQueueApc+0x605ntoskrnl.exe!ObfReferenceObject+0x99dntoskrnl.exe!KeWaitForMultipleObjects+0x272ntoskrnl.exe!NtRequestWaitReplyPort+0x335ntoskrnl.exe!FsRtlReleaseFile+0xc6dntoskrnl.exe!longjmp+0x5bf3ntdll.dll!NtWaitForMultipleObjects+0xaKernelBase.dll!GetCurrentProcess+0x40kernel32.dll!WaitForMultipleObjectsEx+0xb3!GC_Initialize+0x1a7f!GC_Initialize+0x199b!GC_Initialize+0x1891kernel32.dll!BaseThreadInitThunk+0xdntdll.dll!RtlUserThreadStart+0x1d 3. Thread (9252)ntoskrnl.exe!KiCpuId+0xaantoskrnl.exe!ObfReferenceObject+0x792ntoskrnl.exe!KeWaitForMutexObject+0x1a3ntoskrnl.exe!CcGetFlushedValidData+0xc34ntoskrnl.exe!KeInsertQueueApc+0x605ntoskrnl.exe!ObfReferenceObject+0x99dntoskrnl.exe!KeWaitForMutexObject+0x1a3ntoskrnl.exe!NtWaitForSingleObject+0xdentoskrnl.exe!longjmp+0x5bf3ntdll.dll!ZwWaitForSingleObject+0xantdll.dll!RtlImageDirectoryEntryToData+0x118ntdll.dll!RtlEnterCriticalSection+0xd1ntdll.dll!LdrQueryModuleServiceTags+0x13fntdll.dll!CsrIdentifyAlertableThread+0x9dntdll.dll!EtwSendNotification+0x16dntdll.dll!RtlQueryProcessDebugInformation+0x371ntdll.dll!EtwDeliverDataBlock+0xf00kernel32.dll!BaseThreadInitThunk+0xdntdll.dll!RtlUserThreadStart+0x1d 4. Thread (10776)ntdll.dll!ZwWaitForSingleObject+0xantdll.dll!RtlImageDirectoryEntryToData+0x118ntdll.dll!RtlEnterCriticalSection+0xd1ntdll.dll!EtwDeliverDataBlock+0x777ntdll.dll!LdrLoadDll+0xedKernelBase.dll!LoadLibraryExW+0xearpcrt4.dll!UuidCreate+0x1de3rpcrt4.dll!I_RpcBindingIsServerLocal+0x12619advapi32.dll!RegEnumKeyExW+0x13aadvapi32.dll!RegEnumKeyExW+0xberpcrt4.dll!RpcBindingFree+0x320rpcrt4.dll!RpcAsyncRegisterInfo+0x10ffrpcrt4.dll!Ndr64AsyncClientCall+0x9darpcrt4.dll!Ndr64AsyncClientCall+0xc9brpcrt4.dll!NdrClientCall3+0xf5advapi32.dll!LsaOpenPolicy+0xb9advapi32.dll!LsaOpenPolicy+0x56advapi32.dll!ConvertStringSidToSidW+0x276advapi32.dll!ConvertStringSecurityDescriptorToSecurityDescriptorW+0xa32advapi32.dll!ConvertStringSecurityDescriptorToSecurityDescriptorW+0x3a!IsOS+0x20f8!IsOS+0x1f49!CorExeMain+0x3255!PreBindAssemblyEx+0x1434!CoUninitializeEE+0x68c5kernel32.dll!BaseThreadInitThunk+0xdntdll.dll!RtlUserThreadStart+0x1dRelated issueI thought it could be similar #703, but it looks different (trace show Common.cs:744 only or even nothing and then hangs immediately).
2025-03-29