git-config
git-config copied to clipboard
A simple way to extract out all the contents of a .gitconfig file and return as JSON
Would a PR for this be welcome?
unit test added for duplicate user section issue close #6
A `.gitconfig` file can `include` other configuration files ([see git documentation](https://git-scm.com/docs/git-config#_includes)) using an `[include]` directive in the main `.gitconfig` file. For example, with the following two files: ``` # file:...
For some reason, in my `.gitconfig` I have the `[user]` section duplicated (on windows). So it looks like this: ``` [user] name = Zoltan Kochan [user] email = [email protected] ```...
Would be nice if the current directory is a git repo, it will parse first the global .gitconfig file & then overwrite the set values in the local .git/config file.