/gitlist

GitList is a handy wrapper around git to recurse through a directory tree and tell you where are the Git repositories and do they have uncommitted changes or local changes that haven't yet been pushed. Perfect for the end of the day wrap up.

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

GitList

Displays the state of your local git repos

If you've ever wanted a quick and easy overview of your git repos from the command line - GitList - is for you.

Installing

At present, clone this repo and then move gitlist.py to a directory on your PATH, and make it executable.

Usage

python3 -m gitlist.py [PARENT_DIRECTORY]

If you omit the optional PARENT_DIRECTORY gitlist will report on the tree starting at the current directory. Running gitlist will show relative paths to each git repository in green. If there are uncommitted changes or unpushed local changes that are committed, then relevant messages will be displayed in yellow.

Testing

Run the following commands:

    git clone --recurse-submodules git@github.com:craigiansmith/gitlist.git
    pipenv install --dev
    pipenv shell
    python -m pytest