Loads the resolved git configuration; not just the file.
var loadConfig = require("load-git-config");
loadConfig(function (error, config) {
if (error) {
console.error("I literally couldn't even", error);
} else {
ZhuLi.doTheThing(config);
}
});
{
"color": {
"ui": "true"
},
"commit": {
"template": "~/.gittemplate"
},
"core": {
"excludesfile": "~/.gitignore",
"autocrlf": "input",
"safecrlf": "false",
"repositoryformatversion": "0",
"filemode": "true",
"bare": "false",
"logallrefupdates": "true",
"ignorecase": "true",
"precomposeunicode": "true"
},
"mergetool": {
"keepbackup": "true"
},
"push": {
"default": "current"
},
"include": {
"path": [
"~/.gitconfig_os",
"~/.gitconfig_local",
"~/.gitaliases",
"~/.gitaliases_local"
]
},
"credential": {
"helper": "osxkeychain"
},
"user": {
"email": "zhu.li@avatar.local",
"name": "Zhu Li"
},
"alias": {
"br": "branch",
"ci": "commit",
"co": "checkout",
"st": "status"
}
}