GoForum🌐 V2EX

windows 上用 claude code,使用是 git bash 报错

ywcjxf1515 · 2026-07-21 11:38 · 0 次点赞 · 0 条回复

你们在 windows 上用 claude code ,使用的是 git bash 会不会经常报 Error: Exit code 5

       0 [main] bash (6336) C:\Program Files\Git\bin\..\usr\bin\bash.exe: *** fatal error - add_item
 ("\??\C:\Program Files\Git", "/", ...) failed, errno 1

已经把 hook 都改走 powershell 还是会有 我怀疑是 statusline 不断调用 git bash 的问题

0 条回复
添加回复
你还需要 登录 后发表回复

登录后可发帖和回复

登录 注册
主题信息
作者: ywcjxf1515
发布: 2026-07-21
点赞: 0
回复: 0