Skip to content

marcosalles/git-list

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Adds a `git list` command to your global git config file

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages