Use the interface: ArtARTs36\GitHandler\Contracts\Transaction\GitTransaction
use \ArtARTs36\GitHandler\Factory\LocalGitFactory;
$command = (new LocalGitFactory())->factory(__DIR__)->transaction();
public function attempt(callable $callback): mixed;
use \ArtARTs36\GitHandler\Factory\LocalGitFactory;
(new LocalGitFactory())->factory(__DIR__)->transaction()->attempt(function (GitHandler $git) {
$git->merges()->merge('master');
});