Free | No tracking | Every fact with a source|German and English

Error / Installation

'git' is not recognized

Git is not installed or not in the PATH, so commands like git clone or update scripts fail.

The message

'git' is not recognized as an internal or external command, operable program or batch file. (PowerShell: The term 'git' is not recognized as the name of a cmdlet …; deutsch: Der Befehl "git" ist entweder falsch geschrieben oder konnte nicht gefunden werden.)

Affects: Git for Windows, ComfyUI, AUTOMATIC1111 Stable Diffusion WebUI, Stable Diffusion WebUI Forge, TextGen (text-generation-webui), llama.cpp

Why is this happening?

Many AI programs are installed with git clone and updated with git pull; install scripts and custom nodes also call Git. Git is not preinstalled on Windows. If you installed it but chose the PATH option “Use Git from Git Bash only” in the installer, CMD and PowerShell won’t find it.

How to fix it

  1. Install Git for Windows from the official site git-scm.com/install/windows (x64 Setup) or in the terminal with winget install --id Git.Git -e --source winget.
  2. In the installer on the “Adjusting your PATH environment” page, leave the recommended option “Git from the command line and also from 3rd-party software” selected.
  3. Close all open terminals and the AI program launcher, reopen them, and test with git --version.
  4. If you already installed Git with “Use Git from Git Bash only,” run the installer again and choose the recommended PATH option.

Better not: Do not download Git from third-party download portals; use only git-scm.com, the GitHub releases for git-for-windows, or winget.

Set up from scratch again

If it still doesn’t work after that, a fresh setup step by step often helps:

Terms for this

Similar errors

Sources

Checked on Oct 21, 2026. Didn't help? Ask in the forum and name the graphics card, program, and the full message.