Use the interface: ArtARTs36\GitHandler\Contracts\Commands\GitStashCommand
use \ArtARTs36\GitHandler\Factory\LocalGitFactory;
$command = (new LocalGitFactory())->factory(__DIR__)->stashes();
public function stash(?string $message = null): bool;
git stash
git stash save $message
use \ArtARTs36\GitHandler\Factory\LocalGitFactory;
(new LocalGitFactory())->factory(__DIR__)->stashes()->stash('message-test');
public function pop(): bool;
git stash pop
use \ArtARTs36\GitHandler\Factory\LocalGitFactory;
(new LocalGitFactory())->factory(__DIR__)->stashes()->pop();
public function getList(): \Stash[];
git stash --list
use \ArtARTs36\GitHandler\Factory\LocalGitFactory;
(new LocalGitFactory())->factory(__DIR__)->stashes()->getList();
public function apply(int $id): bool;
git apply stash stash@{$id}
use \ArtARTs36\GitHandler\Factory\LocalGitFactory;
(new LocalGitFactory())->factory(__DIR__)->stashes()->apply(1);