A CLI tool to check if you have uncommitted changes or unpushed commits in any of your Git repositories.
Dirt scans specified directories (and their subdirectories up to 2 levels deep) for Git repositories and reports any that have uncommitted changes or unpushed commits.
You can also check the documentation at pkg.go.dev
go install github.com/crnvl96/dirt@latestDownload the latest binary from the releases page.
dirt [flags]-t, --target string: Target directories to scan (scans recursively up to 2 levels). If not specified, scans the current directory.
Scan the current directory:
dirtScan specific directories:
dirt -t ~/config -t ~/Developer -t ~/.nvim- Clean repositories: Displays "All repositories are clean!" in green.
- Dirty repositories: Lists repositories with uncommitted changes or unpushed commits in red, with details on what's dirty.
git clone https://github.com/crnvl96/dirt.git
cd dirt
go build -o dirt .Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.