Small utility to scan a directory for git repositories that have uncommitted changes or stashes.
Run directly with Python:
python3 scan.py /path/to/scanOr, after installing the package (see below), use the scan command:
scan /path/to/scanScan current directory:
python3 scan.py .Scan your home directory:
python3 scan.py ~Install locally with pip:
pip install --user .The script reads ignored directories from config.json. You can customize which directories to skip during scanning by editing the ignored_directories list in that file.
By default, the script ignores:
- Package managers:
node_modules,vendor,bower_components,.yarn - Virtual environments:
.venv,venv,env - Build artifacts:
build,dist,out,target - IDE/editor files:
.vscode,.idea,.settings - Cache and temp files:
.cache,.pytest_cache,__pycache__ - OS files:
.DS_Store,Thumbs.db - And many other common development directories
- The script ignores common large/irrelevant folders via
config.json - This project uses
.gitignoreto exclude Python artifacts and development files