Skip to content

List all the repos, their HEADs and clean status in the Current Directory or the Supplied Directory

License

Notifications You must be signed in to change notification settings

pankajpatel/list-repos

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

1c6b811 Â· May 1, 2022
May 1, 2022
Apr 19, 2022
Apr 28, 2022
Apr 29, 2022
Apr 29, 2022
Oct 21, 2016
Apr 28, 2022
Apr 28, 2022
Apr 28, 2022
May 1, 2022
Feb 12, 2021
Jan 2, 2022
Jun 20, 2016
Feb 20, 2021
Apr 29, 2022
Apr 30, 2022
May 1, 2022
Apr 28, 2022
Apr 28, 2022
Apr 28, 2022

Repository files navigation

List Repos (list-repos)

Code Climate Issue Count Test Coverage

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

And will comeup with this output:

list-repos

There are several other options for output like:

  • --git-only or -g

Show only git repos

list-repos -g

  • --attention or -a

Show all directories which requires attention, includes non-git

list-repos -a

  • --attention --git-only or -ag

Show all git repos which requires attention

list-repos -ag

  • --compact or -c

Show compact table output

list-repos -c

  • --compact=s or -c=s

Show compact table output and short table headers and header description at the bottom

list-repos -c=s

  • --compact=so or -c=so

Show compact table output and short table headers and no header description at the bottom

list-repos -c=so

  • --simple or -s

Show simple comma and new line separated output;

order of values is dir, branch, ahead, dirty, untracked, stashes

list-repos -s

  • --help or -h

Show help

  • --version or -v

Show version of the utility