英語原文を表示
CLAUDE_CODE_GIT_BASH_PATH on Windows exiting or being used as bash when the path isn't a bash/sh binary; it's now ignored with a warning変更後
設定ミスによってツールが即座にクラッシュすることを避け、適切なエラーメッセージを見て修正を行えます。
Windows 専用: Git Bash 実行ファイル(bash.exe)へのパスである。Git Bash がインストールされているのに PATH に含まれない場合に使う。パスが存在しない場合やファイル名が bash.exe、sh.exe、bash、sh のいずれでもない場合、Claude Code はこの変数を無視して、未設定の場合と同様に Git Bash を自動検出し、--debug で表示可能な警告をログに出力する。v2.1.219 より前では、パスが存在しない場合に Claude Code は起動時に終了し、存在する任意のファイルを bash や sh かどうかを確認せずにシェルとして使っていた
Windows only: path to the Git Bash executable (bash.exe). Use when Git Bash is installed but not in your PATH. If the path doesn't exist or the file isn't named bash.exe, sh.exe, bash, or sh, Claude Code ignores the variable and auto-detects Git Bash as if it were unset, logging a warning visible with --debug. Before v2.1.219, Claude Code exited at startup when the path didn't exist, and used any existing file as the shell without checking that it was bash or sh. See Windows setup
CLAUDE_CODE_GIT_BASH_PATH on Windows exiting or being used as bash when the path isn't a bash/sh binary; it's now ignored with a warning変更後
設定ミスによってツールが即座にクラッシュすることを避け、適切なエラーメッセージを見て修正を行えます。
CLAUDE_CODE_GIT_BASH_PATH が正しく設定されている場合でも「Git Bashが必要」という誤判定エラーが出る問題を修正CLAUDE_CODE_GIT_BASH_PATH is set or Git is installed at a default location変更後
WindowsユーザーがVS Codeの統合ターミナルからClaude Codeを起動する際、不要なエラーに悩まされることなく、スムーズに開発を開始できます。