protected function gitRemoteBranchExist()
    {
        $task = $this->getGitBuildStack()
            ->exec("ls-remote --exit-code --heads {$this->gitRepo()} {$this->gitBranch()}");

        /** @var Result $result */
        $result = $this->runSilentCommand($task);

        return $result->getExitCode() === 0;
    }