Is C:\Program Files\Git\cmd in your System Environment Variables? Did you restart your terminal or IDE?

Git is installed, but its location isn't listed in your system's PATH . 2. Step 1: Install Git (If you haven't) Before checking paths, ensure you actually have Git. Download the installer from . Run the installer.

This is the most common mistake:

Click again and add the path to the bin folder (e.g., C:\Program Files\Git\bin ). Save: Click OK on all windows. 4. Step 3: Refresh Your Terminal

If you already have Git installed but still get the error, you need to manually tell Windows where it lives.