Crates.io | dg |
lib.rs | dg |
version | 1.1.0 |
source | src |
created_at | 2023-05-20 15:23:01.222447 |
updated_at | 2023-05-20 15:23:01.222447 |
description | dg - find dirty git repos recursively |
homepage | |
repository | https://github.com/jondot/dg |
max_upload_size | |
id | 869490 |
size | 59,424 |
Ever forgot to push a commit or lost your work because you assumed it was pushed to Github but it wasn't?
dg
finds local git repos with pending changes, un-added files, branches that are completely new, and branches that were not pushed upstream.
Run it before you go on holiday 🎃, or every month just to check that you're not forgetting anything 📅.
$ dg -b
┌───────────────────────┬──────────────┬────────┬──────────────────────┐
│ repository │ changes │ ahead │ missing │
├───────────────────────┼──────────────┼────────┼──────────────────────┤
│ ./logolang.org │ │ │ master │
├───────────────────────┼──────────────┼────────┼──────────────────────┤
│ ./init-tslib │ │ │ master │
├───────────────────────┼──────────────┼────────┼──────────────────────┤
│ ./sqlx-crud │ •••••••••••• │ │ │
├───────────────────────┼──────────────┼────────┼──────────────────────┤
│ ./interactive-actions │ │ │ master │
├───────────────────────┼──────────────┼────────┼──────────────────────┤
│ ./sign-rs │ │ │ master │
├───────────────────────┼──────────────┼────────┼──────────────────────┤
│ ./teller-docs │ ••• │ │ adding-styling-fwks, │
│ │ │ │ master, │
│ │ │ │ switch-to-theme-ui │
├───────────────────────┼──────────────┼────────┼──────────────────────┤
│ ./init-rs │ │ │ implement-eject, │
│ │ │ │ master, simplified │
├───────────────────────┼──────────────┼────────┼──────────────────────┤
│ ./foobar3 │ ••• │ │ │
├───────────────────────┼──────────────┼────────┼──────────────────────┤
│ ./pattern_match │ •••••• │ │ master │
└───────────────────────┴──────────────┴────────┴──────────────────────┘
For example - this discovered that I have local changes on sqlx-crud
, and that teller-docs
contains branches that I created locally but never pushed.
$ brew tap jondot/tap && brew install dg
Otherwise, grab a release from releases.
Usage: dg [-b] [-p <path>]
dg: find dirty local Git repos with pending changes or unpushed content
Options:
-b, --branches include analysis for local branches
-p, --path root path (default ".")
--help display usage information
-V, --version print version information and exit
We are accepting PRs. Feel free to submit PRs.
To all Contributors - you make this happen, thanks!
Copyright (c) 2023 @jondot. See LICENSE for further details.