Use the interface: ArtARTs36\GitHandler\Contracts\Commands\GitCommitCommand
use \ArtARTs36\GitHandler\Factory\LocalGitFactory;
$command = (new LocalGitFactory())->factory(__DIR__)->commits();
See classes:
public function commit(string $message, bool $amend = false, Author $author = null): bool;
git commit -m="{$message}"
git commit -m="{$message}" --amend
git commit -m="{$message}" --author="$author"
use \ArtARTs36\GitHandler\Factory\LocalGitFactory;
(new LocalGitFactory())->factory(__DIR__)->commits()->commit('message-test', true, 'author-test');
public function autoCommit(string $message, bool $amend = false): bool;
git add (untracked files) && git commit -m $message
use \ArtARTs36\GitHandler\Factory\LocalGitFactory;
(new LocalGitFactory())->factory(__DIR__)->commits()->autoCommit('message-test', true);