Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 894 Bytes

README.md

File metadata and controls

34 lines (23 loc) · 894 Bytes

git-list

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.

install

\curl -sSL https://raw.githubusercontent.com/marcosalles/git-list/master/install.sh | bash -s

how to use

$ 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.

sample output

$ 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