artarts36/git-handler-remote

0.1.0 2021-08-22 21:41 UTC

This package is auto-updated.

Last update: 2024-09-23 04:12:11 UTC


README

与远程服务器上的git仓库一起工作

安装

composer require artarts36/git-handler-remote

使用

use ArtARTs36\GitHandler\Factory\RemoteGitFactory;
use ArtARTs36\ShellCommand\Executors\Ssh\Connection;

$connection = Connection::withPassword('host', 'user', 'password');

$git = (new RemoteGitFactory($connection))->factory('/var/web/project/');