public function getConfig($key, $dir = null, $mustRun = false)
    {
        $args = ['config', '--get', $key];

        return $this->execute($args, $dir, $mustRun);
    }
public function getConfig($key, $dir = null, $mustRun = false)
    {
        $args = ['config', '--get', $key];

        return $this->execute($args, $dir, $mustRun);
    }
public function getConfig ( $ key , $ dir = null , $ mustRun = false ) { $ args = [ 'config' , '--get' , $ key ] ; return $ this -> execute ( $ args , $ dir , $ mustRun ) ; }
Read a configuration item.

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

@return string|false
Read a configuration item .