Banago\PHPloy\Git::checkout PHP Method

checkout() public method

Checkout given $branch.
public checkout ( string $branch, string $repoPath = null ) : array
$branch string
$repoPath string
return array
    public function checkout($branch, $repoPath = null)
    {
        $command = 'checkout ' . $branch;
        return $this->command($command, $repoPath);
    }