/bin/sh: 1: git: not found
时间: 2023-09-21 12:02:44 浏览: 468
This error message means that the git command is not installed on your system or it is not in the PATH environment variable. To resolve this issue, you need to install Git on your system or add the Git executable path to the PATH environment variable.
To install Git on Ubuntu, you can run the following command:
```
sudo apt-get install git
```
If you are using a different operating system, you can refer to the Git documentation for installation instructions.
If you already have Git installed, you can check the location of the executable by running the following command:
```
which git
```
This command will output the path to the Git executable. You can then add this path to the PATH environment variable by running the following command:
```
export PATH=$PATH:/path/to/git
```
Replace "/path/to/git" with the actual path to the Git executable on your system. You can also add this command to your shell startup script (e.g. ~/.bashrc or ~/.zshrc) to make the change persistent.
阅读全文