public function update(string $ref, string $sha, bool $force = false): array
    {
        return $this->getApi()->request($this->getApi()->sprintf('/repos/:owner/:repo/git/refs/:ref',
            $this->getGitData()->getOwner(), $this->getGitData()->getRepo(), $ref), Request::METHOD_POST, [
                'sha'   => $sha,
                'force' => $force
            ]);
    }