public function checkOut($name, $dir = null, $mustRun = false, $quiet = false)
    {
        return (bool) $this->execute([
            'checkout',
            $name,
        ], $dir, $mustRun, $quiet);
    }
public function checkOut($name, $dir = null, $mustRun = false, $quiet = false)
    {
        return (bool) $this->execute([
            'checkout',
            $name,
        ], $dir, $mustRun, $quiet);
    }
public function checkOut ( $ name , $ dir = null , $ mustRun = false , $ quiet = false ) { return ( bool ) $ this -> execute ( [ 'checkout' , $ name , ] , $ dir , $ mustRun , $ quiet ) ; }
Check out a branch.

@param string      $name
@param string|null $dir
The path to a Git repository.
@param bool        $mustRun
Enable exceptions if the Git command fails.
@param bool        $quiet

@return bool
Check out a branch .