aurimasniekis/git-config
Composer 安装命令:
composer require aurimasniekis/git-config
包简介
Git Config value provider
关键字:
README 文档
README
Provides interface for git config.
Install
Via Composer
$ composer require aurimasniekis/git-config
Usage
Initialization:
// 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
$config->get('user.name')
Set value
$config->get('user.name', 'Foo Bar')
Unset value
$config->unSet('user.name')
Testing
$ composer test
Contributing
Please see CONTRIBUTING and CONDUCT for details.
License
Please see License File for more information.
统计信息
- 总下载量: 7
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-03-24