Adds a git list
command to your global git config file that prints all configurations added for a category, separated in 3 sections: SYSTEM, GLOBAL and LOCAL.
\curl -sSL https://raw.githubusercontent.com/marcosalles/git-list/master/install.sh | bash -s
$ git list [category]
category
is optional and defaults to alias
. If no configs for a section are found, the script skips that section. If no configs are found in any section, quits with exit code 1
.
$ git list alias
Printing all Git configurations for section [alias]
[GLOBAL - /path/to/global/.gitconfig]
r = reset
cp = cherry-pick
st = status -sb
b = branch
d = diff
list = !bash /path/to/installed/.git-list
[LOCAL - .git/config]
yolo = !git commit -am "$(curl -s whatthecommit.com/index.txt)" && git push