git-deploy icon indicating copy to clipboard operation
git-deploy copied to clipboard

always sh: 1: /usr/bin/git: not found

Open yudaadp opened this issue 6 years ago • 2 comments
trafficstars

i follow this instruction run sudo chown -R yourusername:webserverusername custom-project-repo-dir/ to change the group of the repo. run sudo chmod -R g+s custom-project-repo-dir/ to make the group assignment inherited for new files/dirs. run sudo chmod -R 775 custom-project-repo-dir/ to set read & write for both owner and group.

but, still not work "/usr/bin/git: not found". i try to run which git and get "/usr/bin/git". why?

yudaadp avatar Mar 17 '19 17:03 yudaadp

Are you sure that git is installed on your server, and if it is, are you sure that /usr/bin/git is the correct path? If you have SSH access, try running which git. If it's installed, that should return the path to the executable.

JacobDB avatar Apr 12 '19 15:04 JacobDB

You should also try running the following in a PHP file to find the git path:

<?php
echo shell_exec("which git");

JacobDB avatar May 22 '19 18:05 JacobDB