Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The solution to this error message is to add the path to the Git executable to the system's PATH environment variable. To do this, follow these steps:

  1. Open the command prompt or terminal window.
  2. Type the following command and press Enter: echo %PATH%
  3. Look for the path to the Git executable in the output of the command. The path should look something like this: C:\Program Files\Git\bin.
  4. If the path is not listed in the output, you will need to add it to the system's PATH environment variable. To do this, open the Start menu, search for "Environment Variables," and click on "Edit the system environment variables."
  5. In the System Properties window, click on the "Environment Variables" button.
  6. In the "System Variables" section, scroll down to find the "Path" variable and click on "Edit."
  7. Click on "New" and enter the path to the Git executable (e.g. C:\Program Files\Git\bin).
  8. Click "OK" to close all windows and save the changes.
  9. Close and reopen any terminal window or editor session to reload the system environment variables.

After following these steps, running the flutter command should no longer result in the "Unable to find git in your PATH" error message.