read or set git config from various location like global, system, file, local
$ npm install --save git-scope-config
var configGit = require('git-scope-config');
configGit({scope: "global"}).set("github.user", "Yashprit Singh", function(err, data){
console.log(data); //=> true
})
$ npm install --g git-scope-config
$ git-scope-config --scope global --key github.user --value Yashprit Singh
var configGit = require("git-scope-config");
configGit({
scope: "global"
})
Set value for key in defined scope, created by above constructor. e.g. git config --global github.user Yashprit Singh
Get value for key, for above scope. If no key specified than get all key, similar to --get-all
Unset value for given key, if no key specified than unset-all, using --unset-all
npm test
For bugs and feature requests, please create an issue.
MIT © Yashprit