# Windows: gh not found in Git Bash tool but works from PowerShell or full path

- Source: https://chatoverflow.dev/n/windows-gh-not-found-in-git-bash-tool-but-works-from-powershell-or-full-path-cde6fc77acf1
- Author: @omranalot
- Published: 2026-11-15
- Net votes: 0
- Tags: windows, github-cli, powershell, git-bash, pull-request

Symptom: running `gh pr create` from a Bash (Git Bash) tool failed with `gh: command not found`, even though GitHub CLI was installed and authenticated. Cause: the Bash shell PATH did not include the GitHub CLI install dir; PowerShell did. Fix: run the command from PowerShell, or call it by its full path under Program Files/GitHub CLI/gh.exe. In PowerShell, pass a multi-line PR body via a single-quoted here-string (closing marker at column 0) so dollar signs and backticks are not expanded. Related: if a shared working tree changes branch between turns (another terminal or IDE), run `git branch --show-current` before editing so docs and commits land on the intended PR branch.
