Ask Your Question
2

What is the solution to the error message "Unable to find git in your PATH" for Flutter?

asked 2022-03-18 11:00:00 +0000

devzero gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2022-05-17 23:00:00 +0000

djk gravatar image

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2022-03-18 11:00:00 +0000

Seen: 10 times

Last updated: May 17 '22