Gush\Helper\GitConfigHelper::getGitConfig PHP Method

getGitConfig() public method

public getGitConfig ( string $config, string $section = 'local', $all = false ) : string
$config string
$section string
return string
    public function getGitConfig($config, $section = 'local', $all = false)
    {
        return trim($this->processHelper->runCommand(sprintf('git config --%s --%s %s', $section, $all ? 'get-all' : 'get', $config), true));
    }