[DOCS] Windows startup "Connect to GitHub" popup from Git Credential Manager is undocumented for background git commands

Status Fixed / completed
Maintainer reply ✓ Yes — bcherny
Activity 3 comments · opened Jun 9, 2026 · closed Aug 17, 2026
💡 Likely answer: A maintainer (bcherny, collaborator) responded on this thread — see the highlighted reply below.

Documentation Type

Missing documentation (feature not documented)

Documentation Location

https://code.claude.com/docs/en/troubleshoot-install

Section/Topic

Windows-specific troubleshooting, Git credential / authentication behavior on startup

Current Documentation

The Windows troubleshooting guide currently has a row in the error table about missing shells and a short "Claude Code on Windows requires either Git for Windows (for bash) or PowerShell" section, but nothing about background git commands, Git Credential Manager, or "Connect to GitHub" popups. Searching the rest of the mirror for git credential, GCM, connect to github, and cached credentials returns only the v2.1.169 changelog entry line that describes the fix:

"Fixed Git Credential Manager's 'Connect to GitHub' popup appearing on Windows at startup when background git commands ran without cached credentials"

There is no corresponding user-facing explanation of the original behavior, why the popup appeared for users without cached credentials, or what changed for Windows users running background git commands from Claude Code sessions.

What's Wrong or Missing?

A. No Windows-specific credential-manager troubleshooting entry

The troubleshoot-install error table at https://code.claude.com/docs/en/troubleshoot-install only covers the default AWS / Bedrock / Vertex / Foundry credential chain. A Windows user who saw the GCM "Connect to GitHub" prompt at startup has no documented path in the troubleshooting guide to understand what triggered it or whether it is expected.

B. Background git command behavior on Windows is undocumented

The v2.1.169 changelog references "background git commands" running without cached credentials, but there is no doc page that explains when Claude Code spawns git in the background on Windows, how cached vs. uncached credentials interact with that, or which environment variable / config option a user could use to suppress the GCM prompt.

C. No mention of Git Credential Manager as a Windows integration point

The Windows install guidance recommends installing Git for Windows so the Bash tool works, and notes that PowerShell is the fallback shell. It does not call out that Git for Windows ships with Git Credential Manager and that GCM can interact with Claude Code's startup git operations. Users who have not pre-authenticated to GitHub through GCM have no signal in the docs that they may be prompted at startup.

Suggested Improvement

Add a short Windows-specific section to https://code.claude.com/docs/en/troubleshoot-install that covers GCM behavior at startup. Suggested structure:

Git Credential Manager "Connect to GitHub" popup on Windows

The [Git for Windows](https://git-scm.com/downloads/win) installer ships with Git Credential Manager, which can prompt you to "Connect to GitHub" the first time a git operation runs without cached credentials. Claude Code may run git commands in the background as soon as a session starts (for example to read repository state), so the popup can appear before you have sent your first message.

To avoid the prompt, authenticate with GitHub through GCM once before starting Claude Code:

In PowerShell or Git Bash

git credential-manager github login

After you sign in, GCM caches the credentials and Claude Code's background git operations no longer trigger the popup. As of v2.1.169, Claude Code no longer triggers the prompt when cached credentials are missing for background git calls, but the popup can still appear if a foreground git command runs before you have authenticated.

The same section should be linked from any "Git on Windows" sub-section added under the existing shell-setup guidance, and the entry in the error table should reference it for users who reach the troubleshoot page with a "Connect to GitHub" dialog on screen.

Impact

Medium - Makes feature difficult to understand

Additional Context

Affected Pages:
| Page | Context |
|------|---------|
| https://code.claude.com/docs/en/troubleshoot-install | Primary location for Windows troubleshooting rows; the only place in the mirror that should describe GCM / startup popup behavior for users |
| https://code.claude.com/docs/en/changelog | Source of the v2.1.169 fix line that motivated this issue; cited so docs readers can correlate the fix with the new troubleshooting guidance |
| https://code.claude.com/docs/en/setup | Setup guide that recommends Git for Windows; should cross-link to the GCM section once it exists |

Total scope: 3 pages affected (one primary, two cross-references)

Other context:

  • The fix was released in v2.1.169 and the changelog describes it as Windows-only.
  • Git Credential Manager is bundled with Git for Windows, which the docs already recommend for Bash-tool support, so this is a natural extension of existing Windows setup guidance rather than a new topic.
  • The behavior was not previously documented as a known Windows issue in any troubleshooting row, so this is missing documentation rather than an outdated entry.

View original on GitHub ↗

3 Comments

coygeek · 3 months ago

Still relevant as of 2026-07-01. All three claims in this issue remain accurate against the current docs mirror:

  1. The troubleshoot-install error table at https://code.claude.com/docs/en/troubleshoot-install still has no Windows-specific Git Credential Manager row; the Windows rows at lines 24-30 cover only install/command/PowerShell issues. A whole-page search for GCM, Git Credential Manager, cached credentials, Connect to GitHub, or background git returns no matches in the troubleshooting guide.
  1. Background git command behavior on Windows is still undocumented. The only mirror mention of GCM, cached credentials, or Connect to GitHub is the v2.1.169 changelog line itself at https://code.claude.com/docs/en/changelog line 370, which is a release note with no companion behavior page. No doc explains when Claude Code spawns git at startup, how cached vs. uncached credentials interact with that, or which environment variable or config option a user could use to suppress the prompt.
  1. The Windows install guidance in https://code.claude.com/docs/en/setup (lines 104-133) still does not call out that Git for Windows ships with Git Credential Manager or that GCM can prompt to Connect to GitHub at first startup. Users have no in-docs signal before they hit the popup.

The mirror's latest release is 2.1.197 (2026-06-30), which is after the v2.1.169 fix and after the issue was filed on 2026-06-09, so this is not a stale-mirror artifact. None of the three gaps have been closed. Recommendation: KEEP OPEN.

References:

bcherny collaborator · 2 months ago

The Git Credential Manager "Connect to GitHub" popup at startup was fixed in v2.1.169 (https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md). Since the popup no longer appears, there's no troubleshooting entry to add. If you still see it on a current version, please open a bug report with claude --version.

🤖 Generated with Claude Code

github-actions[bot] · 9 days ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.