列出所有带有.git子目录的目录,并显示每个目录的当前分支。
lsbranch的Python项目详细描述
lsbranch
列出所有带有.git子目录的目录,并显示每个目录的当前分支。
安装
pip install lsbranch
cli用法
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.
假设您希望递归地列出当前目录中的所有git目录
> lsbranch -r -p .
假设您只想列出当前目录中的所有git目录,而不是递归地列出
> lsbranch