Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
yudaadp opened this issue Mar 17, 2019 · 2 comments
Open

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

yudaadp opened this issue Mar 17, 2019 · 2 comments
Labels

Comments

@yudaadp
Copy link

yudaadp commented Mar 17, 2019

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?

@JacobDB
Copy link
Collaborator

JacobDB commented Apr 12, 2019

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
Copy link
Collaborator

JacobDB commented May 22, 2019

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants