Work with git repository on remote server
composer require artarts36/git-handler-remote
useArtARTs36\GitHandler\Factory\RemoteGitFactory;
useArtARTs36\ShellCommand\Executors\Ssh\Connection;
$connection = Connection::withPassword('host', 'user', 'password');
$git = (newRemoteGitFactory($connection))->factory('/var/web/project/');