Skip to content

git-remote-https hanging at 99% CPU on fetch #22893

Closed

Description

@isaacatmann

The problem

I'm constantly seeing the git-remote-https process hang at 99% on fetch, force quitting the process and running it again resolves the issue:

99339   ??  R    819:20.24 /Applications/GitHub Desktop.app/Contents/Resources/app/git/libexec/git-core/git-remote-https origin https://github.com/xxxxxxxx/Application-Install-Or-Update.git

The logs usually fail around:

2026-09-16T23:50:51.954Z - info: [ui] credential-helper: found GitHub credential for https://github.com/ in store

Release version

3.6.6

Operating system

macOS 27.0 & macOS 26.6.2

Steps to reproduce the behavior

  1. Click Fetch origin
  2. Github desktop freezes on fetching
  3. Force quit process, try again and it usually works.

Log files

No response

Screenshots

2026-09-16T23:09:36.164Z - info: [ui] [AppStore] loading 0 repositories from store
2026-09-16T23:09:36.550Z - info: [ui] Opt in reported.
2026-09-16T23:09:36.725Z - info: [ui] [Welcome] no sign in step found. ignoring...
2026-09-16T23:09:36.743Z - info: [ui] launching: 3.6.6 (Mac OS 27.0.0)
2026-09-16T23:09:36.750Z - info: [ui] execPath: '/Applications/GitHub Desktop.app/Contents/Frameworks/GitHub Desktop Helper (Renderer).app/Contents/MacOS/GitHub Desktop Helper (Renderer)'
2026-09-16T23:09:36.750Z - info: [ui] [Welcome] no sign in step found. ignoring...
2026-09-16T23:09:36.758Z - info: [ui] [Welcome] no sign in step found. ignoring...
2026-09-16T23:09:36.759Z - info: [ui] [Welcome] no sign in step found. ignoring...
2026-09-16T23:09:36.770Z - info: [ui] [Welcome] no sign in step found. ignoring...
2026-09-16T23:09:37.158Z - info: [ui] [Welcome] no sign in step found. ignoring...
2026-09-16T23:09:39.080Z - info: [ui] [Welcome] advancing to step: SignInToDotComWithBrowser
2026-09-16T23:09:39.081Z - info: [ui] [SignInStore] initializing OAuth flow
2026-09-16T23:09:39.082Z - info: [main] opening in browser: https://github.com/login/oauth/authorize?client_id=de0e3c7e9973e1c4dd77&scope=repo%20user%20workflow&state=fa5e16fc-3e1c-43eb-ae68-ca3eb2cfdc16
2026-09-16T23:09:39.087Z - info: [ui] [Welcome] current sign in state not found. ignoring...
2026-09-16T23:09:39.196Z - info: [ui] [Welcome] kind Authentication is the same as Authentication. ignoring...
2026-09-16T23:09:43.100Z - info: [main] Processing protocol url
2026-09-16T23:09:43.104Z - info: [ui] [Welcome] kind Authentication is the same as Authentication. ignoring...
2026-09-16T23:09:43.892Z - info: [ui] [SignInStore] account resolved
2026-09-16T23:09:43.893Z - info: [ui] [AppStore] adding account xxx (Isaac) to store
2026-09-16T23:09:43.904Z - info: [ui] [Welcome] advancing to step: ConfigureGit
2026-09-16T23:09:43.939Z - info: [ui] [Welcome] no sign in step found. ignoring...
2026-09-16T23:09:43.956Z - info: [ui] [Welcome] no sign in step found. ignoring...
2026-09-16T23:09:44.333Z - info: [ui] Subscribed 'xxx' to Alive channel
2026-09-16T23:09:45.054Z - info: [ui] [Welcome] no sign in step found. ignoring...
2026-09-16T23:09:45.430Z - info: [ui] [Welcome] no sign in step found. ignoring...
2026-09-16T23:09:45.571Z - info: [ui] [Welcome] no sign in step found. ignoring...
2026-09-16T23:10:08.596Z - info: [ui] credential-helper: found GitHub credential for https://github.com/ in store
2026-09-16T23:10:10.138Z - info: [ui] Executing clone: git -c init.defaultBranch=master clone --recursive --progress -- https://github.com/xxxx/Application-Install-Or-Update.git /Users/isaacordonez/GitHub/Application-Install-Or-Update (took 1.834s)
2026-09-16T23:10:10.149Z - info: [ui] [AppStore] adding repository at /Users/isaacordonez/GitHub/Application-Install-Or-Update to store
2026-09-16T23:10:10.397Z - info: [ui] [BranchPruner] Last prune took place now - skipping
2026-09-16T23:10:10.583Z - info: [ui] credential-helper: found GitHub credential for https://github.com/ in store
2026-09-16T23:10:11.105Z - info: [ui] credential-helper: found GitHub credential for https://github.com/ in store
2026-09-16T23:10:35.242Z - info: [ui] credential-helper: found GitHub credential for https://github.com/ in store
2026-09-16T23:10:36.419Z - info: [ui] Executing clone: git -c init.defaultBranch=master clone --recursive --progress -- https://github.com/xxx/Misc-Scripts.git /Users/isaacordonez/GitHub/Misc-Scripts (took 1.431s)
2026-09-16T23:10:36.432Z - info: [ui] [AppStore] adding repository at /Users/isaacordonez/GitHub/Misc-Scripts to store
2026-09-16T23:10:36.456Z - info: [ui] [BranchPruner] Last prune took place 26 seconds ago - skipping
2026-09-16T23:10:54.516Z - info: [ui] credential-helper: found GitHub credential for https://github.com/ in store
2026-09-16T23:10:55.090Z - info: [ui] credential-helper: found GitHub credential for https://github.com/ in store
2026-09-16T23:10:55.364Z - info: [ui] [RepositoryIndicatorUpdater]: Refreshing sidebar indicators for 2 repositories took 1.2s of which 0.0s paused, total 1.2s
2026-09-16T23:13:46.961Z - info: [ui] Executing clone: git -c init.defaultBranch=main clone --recursive --progress -- https://github.com/xxx/Meraki-Prompts.git /Users/isaacordonez/GitHub/Meraki-Prompts (took 181.960s)
2026-09-16T23:13:46.970Z - error: [ui] git -c init.defaultBranch=main clone --recursive --progress -- https://github.com/xxx/Meraki-Prompts.git /Users/xxx/GitHub/Meraki-Prompts exited with an unexpected code: 128.
Cloning into '/Users/xxx/GitHub/Meraki-Prompts'...
error: git credential-desktop get died of signal 9
fatal: could not read Username for 'https://github.com': terminal prompts disabled

2026-09-16T23:14:02.518Z - info: [ui] credential-helper: found GitHub credential for https://github.com/ in store
2026-09-16T23:14:03.467Z - info: [ui] Executing clone: git -c init.defaultBranch=main clone --recursive --progress -- https://github.com/xxx/Meraki-Prompts.git /Users/isaacordonez/GitHub/Meraki-Prompts (took 1.257s)
2026-09-16T23:14:03.476Z - info: [ui] [AppStore] adding repository at /Users/isaacordonez/GitHub/Meraki-Prompts to store
2026-09-16T23:14:03.494Z - info: [ui] [BranchPruner] Last prune took place 3 minutes ago - skipping
2026-09-16T23:14:05.299Z - info: [ui] credential-helper: found GitHub credential for https://github.com/ in store
2026-09-16T23:18:22.709Z - info: [ui] Executing updateRemoteHEAD: git remote set-head -a origin (took 257.092s)
2026-09-16T23:18:29.106Z - info: [ui] credential-helper: found GitHub credential for https://github.com/ in store
2026-09-16T23:18:29.823Z - info: [ui] credential-helper: found GitHub credential for https://github.com/ in store
2026-09-16T23:18:34.433Z - info: [ui] [BranchPruner] Last prune took place 8 minutes ago - skipping
2026-09-16T23:18:35.584Z - info: [ui] credential-helper: found GitHub credential for https://github.com/ in store
2026-09-16T23:18:36.348Z - info: [ui] credential-helper: found GitHub credential for https://github.com/ in store
2026-09-16T23:19:13.441Z - info: [ui] [AppStore] loading 3 repositories from store
2026-09-16T23:19:13.445Z - info: [ui] [AppStore] found account: xxx (Isaac)
2026-09-16T23:19:13.457Z - info: [ui] [BranchPruner] Last prune took place 9 minutes ago - skipping
2026-09-16T23:19:13.626Z - info: [ui] [AppStore] removing account xxx (Isaac) from store
2026-09-16T23:19:13.633Z - warn: [ui] Alive web socket request failed: Error: Requires authentication
2026-09-16T23:19:13.938Z - error: [ui] Could not get Alive web socket URL for 'xxx'
Error: Requires authentication
at Jn (/webpack:/app/src/lib/http.ts:178:11)
at fi.getAliveWebSocketURL (/webpack:/app/src/lib/api.ts:889:16)
at Object.createSessionForAccount (/webpack:/app/src/lib/stores/alive-store.ts:170:7)
at Object.subscribeToAccount (/webpack:/app/src/lib/stores/alive-store.ts:227:11)
at Object._subscribeToAccounts (/webpack:/app/src/lib/stores/alive-store.ts:146:37)
at Object.subscribeToAccounts (/webpack:/app/src/lib/stores/alive-store.ts:119:15)
2026-09-16T23:19:13.940Z - warn: [ui] fetchRepository: 'xxxx/Application-Install-Or-Update' returned a 404
2026-09-16T23:19:13.940Z - warn: [ui] fetchAll: 'repos/xxxx/Application-Install-Or-Update/issues?state=all&since=2026-06-24T15%3A00%3A10Z' returned a 404
2026-09-16T23:19:13.941Z - info: [ui] [fetchProtectedBranches] unable to list protected branches
Error: Not Found
at Jn (/webpack:/app/src/lib/http.ts:178:11)
at fi.fetchProtectedBranches (/webpack:/app/src/lib/api.ts:1683:7)
at dy.updateBranchProtectionsFromAPI (/webpack:/app/src/lib/stores/app-store.ts:4953:11)
2026-09-16T23:19:14.004Z - warn: [ui] Alive channel request failed: Error: Requires authentication
2026-09-16T23:19:14.034Z - warn: [ui] Alive web socket request failed: Error: Requires authentication
2026-09-16T23:19:14.034Z - error: [ui] Could not get Alive web socket URL for 'xxx'
Error: Requires authentication
at Jn (/webpack:/app/src/lib/http.ts:178:11)
at fi.getAliveWebSocketURL (/webpack:/app/src/lib/api.ts:889:16)
at Object.createSessionForAccount (/webpack:/app/src/lib/stores/alive-store.ts:170:7)
at Object.subscribeToAccount (/webpack:/app/src/lib/stores/alive-store.ts:227:11)
at Object._subscribeToAccounts (/webpack:/app/src/lib/stores/alive-store.ts:146:37)
2026-09-16T23:19:14.064Z - warn: [ui] Alive channel request failed: Error: Requires authentication
2026-09-16T23:19:14.456Z - info: [ui] launching: 3.6.6 (Mac OS 27.0.0)
2026-09-16T23:19:14.457Z - info: [ui] execPath: '/Applications/GitHub Desktop.app/Contents/Frameworks/GitHub Desktop Helper (Renderer).app/Contents/MacOS/GitHub Desktop Helper (Renderer)'
2026-09-16T23:19:14.775Z - info: [ui] Stats reported.
2026-09-16T23:19:18.881Z - info: [ui] [SignInStore] initializing OAuth flow
2026-09-16T23:19:18.884Z - info: [main] opening in browser: https://github.com/login/oauth/authorize?client_id=de0e3c7e9973e1c4dd77&scope=repo%20user%20workflow&state=0e8e9459-4044-45ac-9943-b81b511772e4
2026-09-16T23:19:22.439Z - info: [main] Processing protocol url
2026-09-16T23:19:23.060Z - info: [ui] [SignInStore] account resolved
2026-09-16T23:19:23.060Z - info: [ui] [AppStore] adding account xxx (Isaac) to store
2026-09-16T23:19:23.494Z - info: [ui] Subscribed 'xxx' to Alive channel
2026-09-16T23:50:51.260Z - info: [ui] credential-helper: found GitHub credential for https://github.com/ in store
2026-09-16T23:50:51.954Z - info: [ui] credential-helper: found GitHub credential for https://github.com/ in store

Additional context

I've tried the following:
Deleted the following files:

~/.gitconfig
~/.config/git/config
~/.config/git/ignore
~/.gitignore_global (or whatever core.excludesfile points to)
~/.git-credentials (only if credential.helper was set to store)
/Applications/GitHub Desktop.app
~/Library/Application Support/GitHub Desktop
~/Library/Preferences/com.github.GitHubClient.plist
~/Library/Caches/com.github.GitHubClient
~/Library/Caches/com.github.GitHubClient.ShipIt
~/Library/Saved Application State/com.github.GitHubClient.savedState
~/Library/Logs/GitHub Desktop

I've then moved my GitHub repos to a storage location and re-synced 2 repos. Issue occurs again, even happening on the initial fetch for one repo. Killing process and trying again is successful.

Activity

  1. desktop-triage commented on Sep 17, 2026

    @desktop-triage

    Classification: Bug (macOS, priority-3)

    This report describes git-remote-https hanging at ~99% CPU during fetch, with a working (if inconvenient) workaround of force-quitting and retrying — that meets the triage bar with version (3.6.6), OS (macOS 27.0/26.6.2), and reproduction steps, even though the reproduction rate isn't 100%. I'm suggesting bug, macOS, and priority-3 (single reporter, workaround exists, no data loss). I found a related but not clearly identical open report, #22863, which describes fetch/pull hanging indefinitely over SSH with no reliable workaround and additional side effects on terminal commands — different transport and different failure mode, so I'm flagging it as related rather than a duplicate.

    Initial hypothesis: The last log line before the hang is always credential-helper: found GitHub credential for https://github.com/ in store, which is emitted by getGitHubCredential in trampoline-credential-helper.ts#L54 right before the credential is handed back to Git's HTTPS transport. Since Desktop's own credential lookup for a known account completes almost immediately, this suggests the hang happens downstream in the spawned git-remote-https process itself (e.g., stalled HTTP/network I/O to github.com) rather than in Desktop's credential-resolution code. I did not find any timeout or kill logic for remote git operations in app/src/lib/git/core.ts, so once git-remote-https stalls there's nothing in Desktop to detect or recover from it automatically — consistent with the reporter needing to manually force-quit the process. Confirming whether this correlates with network conditions, proxy/VPN usage, or a specific git version would help narrow this down further.

    Duplicate Check: No exact duplicate found. #22863 ("Desktop App Fetch/Pull from origin hangs indefinitely") is a related open report but describes SSH-based hangs with different side effects, so it's not clearly the same root cause.

    Suggested Next Steps: Ask the reporter whether this correlates with a specific network (VPN/proxy), and whether it also reproduces on a clean network. Given the CPU-spin detail and lack of any client-side timeout for git subprocesses, this is ready for engineering investigation.

    Generated by Issue Triage (skills-driven) for #22893 · auto · 70.2 AIC · ⌖ 1.49 AIC · ⊞ 8.1K · ◷

  2. niik commented on Sep 18, 2026

    @niik
    Member

    Thanks for the detailed report. We'd like to capture Git's trace output and a sample of the process while it is using high CPU, before it is force-quit.

    1. In GitHub Desktop, select View → Toggle Developer Tools.
    2. Open the Application tab, expand Local Storage, and select Desktop's entry, normally file://.
    3. Add a key named git-trace with the value /Users/YOUR_USERNAME/Desktop/github-desktop-git-trace.log, replacing YOUR_USERNAME with your macOS account's short username. Use the full path, without surrounding quotes or ~. If the key already exists, note its previous value.
    4. Close Developer Tools and reproduce the problem with a new fetch. This won't enable tracing for a fetch that is already stuck.
    5. While it is stuck, open Activity Monitor, select the git-remote-https process consuming high CPU, and choose Sample Process from the actions menu. Save the sample before stopping the process.

    Please share the trace file, the process sample, and today's Desktop log from Help → Show Logs in Finder. Review these files first and redact credentials, tokens, private repository URLs, usernames, paths, or other sensitive information.

    Afterwards, remove the git-trace key—or restore its previous value—and quit/reopen Desktop after stopping the stuck operation. The trace file remains on disk.

    Please also let us know whether you use a VPN, proxy, web filter, or endpoint-security software, and whether the logged credential-desktop get died of signal 9 error followed manually terminating a process.

  3. added
    more-info-needed
    on Sep 18, 2026
  4. github-actions commented on Oct 2, 2026

    @github-actions
    Contributor

    Thank you for your issue!
    We haven't gotten a response to our questions above. With only the information that is currently in the issue, we don't have enough information to take action. We're going to close this but don't hesitate to reach out if you have or find the answers we need. If you answer our questions above, this issue will automatically reopen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    more-info-neededneeds-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions