Error Solved git was not found in your path

This error message indicates that the command line is unable to find the Git executable. To solve this issue, you will need to add the path to the Git executable to your system’s PATH environment variable. The steps to do this will vary depending on your operating system.

For Windows:

  1. Open the Start menu and search for “Environment Variables”
  2. Click on “Edit the system environment variables”
  3. Click on the “Environment Variables” button
  4. Under “System variables”, scroll down and find the “Path” variable, then click on “Edit”
  5. Click on “New” and enter the path to the Git executable (e.g., C:\Program Files\Git\bin)
  6. Restart any open command prompt windows for the changes to take effect

For macOS or Linux:

  1. Open a terminal window
  2. Edit your .bash_profile or .bashrc file by running the command: nano ~/.bash_profile or nano ~/.bashrc
  3. Add the following line to the file: export PATH=”/usr/local/git/bin:$PATH”
  4. Save the file and exit the editor
  5. Run the command: source ~/.bash_profile or source ~/.bashrc
  6. Restart your terminal

Note that the above steps are just an example and the path to git may be different on your system.

Leave a Reply