[BUG] Global git config on windows not set correctly

Resolved 💬 3 comments Opened May 1, 2026 by imranmp Closed May 5, 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?

The global git config for ignoring settings uses mixed slashes

cat ~/.config/git/ignore
**/.claude\settings.local.json

Updating it to use forward slash seems to fix the issue on Windows

echo '**/.claude/settings.local.json' > ~/.config/git/ignore

What Should Happen?

Update it to '**/.claude/settings.local.json'

Error Messages/Logs

Steps to Reproduce

Run

cat ~/.config/git/ignore

Claude Model

None

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.126 (Claude Code)

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Windows Terminal

Additional Information

_No response_

View original on GitHub ↗

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