Github account password is required to execute git pull with php's shell_exec

use php to do the webhook of github, as follows:

        $cmd = "eval `ssh-agent -s` && ssh-add && cd $target && git pull 2>&1";
        $res = shell_exec($cmd);

ssh key (no password) has been added, no error returned, but not successful.

$cmd = "cd $target & & git pull 2 > & 1"; prompts you that there is no permission because key should not be loaded.

May.24,2022

git remote-v shows whether it is ssh or https connection. The warehouse address is below mosaic

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1becc10-31b08.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1becc10-31b08.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?