/lsbranch

List all directories with .git subdirectory and show current branch for each

Primary LanguagePythonMIT LicenseMIT

lsbranch

PyPI version

List all directories with .git subdirectory and show current branch for each.

Instalation

pip install lsbranch

CLI Usage

Usage: lsbranch [OPTIONS]

  List all directories with .git subdirectory and show current branch for
  each

Options:
  -r, --recursive  Recursive directory search
  -p, --path PATH  Path to search
  --help           Show this message and exit.

Let's say that you want to list all git dirs in current dir, recursively:

> lsbranch -r -p .

Let's say you just want to list all git dirs in current dir, not recursively:

> lsbranch