GitConfig Component
, (*1)
, (*2)
Provides interface for git config
., (*3)
Install
Via Composer, (*4)
$ composer require aurimasniekis/git-config
Usage
Initialization:, (*5)
// Uses `git` from $PATH and standard `.gitconfig` files
$config = new Config();
// Uses custom `git` path
$config = new Config('/usr/local/bin/git');
// Uses custom `.gitconfig` file
$config = new Config(null, '~/.gitconfig');
Get value, (*6)
$config->get('user.name')
Set value, (*7)
$config->get('user.name', 'Foo Bar')
Unset value, (*8)
$config->unSet('user.name')
Testing
$ composer test
Contributing
Please see CONTRIBUTING and CONDUCT for details., (*9)
License
Please see License File for more information., (*10)