public static function create(Repository $repository, $commit1 = null, $commit2 = null, string $path = null)
    {
        $commit = new self($repository);
        $commit->createFromCommand($commit1, $commit2, $path);

        return $commit;
    }