This utility lists the current active branch on repos present in specified directory. By default it takes the current directory
Read more at time2hack.com/introducing-list-repos
To install the utility, simply do
npm install -g list-repos
And in few seconds(or minutes), it should be installed. If it gives error of Access rights, try with sudo
and after you enter the password for sudo
, it should install normally.
To use the utility, type following on CLI,
# Check for the current active branch on repos present in parent directory
list-repos ../
You can pass the following arguments:
Parameter | Shorthand | Description |
---|---|---|
--version |
-v |
Version |
--help |
-h |
Help |
--ignore |
-i |
Ignore matching substring |
--match |
-m |
Only matching substring |
--gitonly |
-g |
Show only git repos |
--attention |
-a |
Show repos which only needs attention |
--simple |
-s |
Simple Output |
--compact |
-c |
Compactness; no value = Low; =s Medium; =so High |
And will comeup with this output:
There are several other options for output like:
--git-only
or-g
Show only git repos
--attention
or-a
Show all directories which requires attention, includes non-git
--attention --git-only
or-ag
Show all git repos which requires attention
--compact
or-c
Show compact table output
--compact=s
or-c=s
Show compact table output and short table headers and header description at the bottom
--compact=so
or-c=so
Show compact table output and short table headers and no header description at the bottom
--simple
or-s
Show simple comma and new line separated output;
order of values is dir
, branch
, ahead
, dirty
, untracked
, stashes
--help
or-h
Show help
--version
or-v
Show version of the utility