[BUG] Claude Code broke my git authentication.

Resolved 💬 2 comments Opened Apr 18, 2026 by david-eatough Closed May 27, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

Claude ran gh auth setup-git without being asked, which overwrote my Windows Credential Manager git credential configuration. Even after Claude removed those entries, git operations continue prompting for credentials in background bash tasks. This caused significant disruption to my development environment and required manual cleanup.

Steps Claude took that caused the damage:

Ran gh auth setup-git — modified global git credential config
Added x-access-token to git remote URLs
Ran git remote set-url on existing clones
Made repeated guesses to fix the problem, making it worse each time

What Should Happen?

Claude should not mess with authentication. And claude should be able to self report issues.

Error Messages/Logs

Steps to Reproduce

Steps Claude took that caused the damage:

Ran gh auth setup-git — modified global git credential config
Added x-access-token to git remote URLs
Ran git remote set-url on existing clones
Made repeated guesses to fix the problem, making it worse each time

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.1.113 (Claude Code)

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Terminal.app (macOS)

Additional Information

When Claude screws up I should be able to have it report the issues on its own.

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗