php - 'git' is not recognized as an internal or external command, operable program or batch file -


I have added the path variable and git is working full on the shell / terminal but when I use php exec on xmp server If I try to do this I get this error.

  'git' is not recognized as internal or external command, operative program or batch file.  

My PHP code is here:

  & lt ;? Php echo shell_exec ("git pull https://github.com/Leadera/ecoman_repo.git 2> & amp; 1"); ? & Gt;  

When I request a GIT bridge from CMD but in the browser I receive an error

XMPP Directory In the git search for the command, you should use the full path for GIT

   and 1"); ? & Gt;  

Comments