diff --git a/README.md b/README.md index 2af9081..dad49ca 100644 --- a/README.md +++ b/README.md @@ -68,6 +68,7 @@ Inspired by the [awesome](https://github.com/sindresorhus/awesome) list thing. - [git-branchcut](#git-branchcut) - [git-exfiltrate](#git-exfiltrate) - [git-spend](#git-spend) +- [git-x](#git-x) ## [git-extras](https://github.com/tj/git-extras) @@ -2062,6 +2063,93 @@ $ git spend sum --author stevemao --author antoine@goutenoir.com --since tags/v1 ``` +## [git-x](https://github.com/simeg/git-x) + +### Repository Health Check + +``` +$ git x health + +๐Ÿ” Repository Health Check: +โœ… Git configuration looks good +โœ… Remote repositories configured +โš ๏ธ Working directory has uncommitted changes +โœ… No security risks detected +โš ๏ธ Large binary files detected: image.png (2.5MB) +``` + +### Analyze Technical Debt + +``` +$ git x technical-debt + +๐Ÿ” Technical Debt Analysis + +๐Ÿ“Š Large Commits (>20 files changed) + โœ“ No large commits found + +๐Ÿ”ฅ File Hotspots (frequently modified) + 1. 15 changes | HIGH | src/main.rs + 2. 8 changes | MED | src/lib.rs + 3. 6 changes | LOW | README.md + +๐ŸŒฟ Long-lived Branches (>30 days) + โ€ข feature/old-refactor | 3 months ago | Alice Smith + โ€ข hotfix/legacy-fix | 6 weeks ago | Bob Jones + +๐Ÿ”„ Code Churn (high add/delete ratio) + 1. +245 -189 | HIGH | src/parser.rs + 2. +156 -98 | MED | src/utils.rs + +๐Ÿ“ฆ Binary Files in Repository + ! 3 binary files found + โ€ข assets/logo.png + โ€ข docs/manual.pdf + ... + +Analysis complete! +``` + +### Interactive Branch switching + +``` +$ git x switch-recent + +? Select a branch to switch to: + ๐ŸŒŸ feature/new-ui (2 days ago) + ๐Ÿ“ bugfix/memory-leak (1 week ago) + ๐Ÿ“ master (2 weeks ago) + ๐Ÿ“ develop (1 month ago) +``` + +### Interactive Stash Management + +``` +$ git x stash-branch interactive + +? Select a stash to manage: + ๐ŸŒŸ stash@{0}: WIP: user authentication (feature/auth) + ๐Ÿ“ stash@{1}: fix styling issues (bugfix/css) + ๐Ÿ“ stash@{2}: add tests (master) + +? What would you like to do? + ๐ŸŒŸ Apply selected stash + ๐Ÿ“ Delete selected stash + ๐Ÿ“ Create branch from stash + ๐Ÿ“ Show stash diff + ๐Ÿ“ Export to patch file +``` + +### Clean Merged Branches + +``` +$ git x clean-branches +๐Ÿงน Deleted branch feature/completed (was a1b2c3d). +๐Ÿงน Deleted branch hotfix/old-fix (was e4f5g6h). +โœ… 2 branches deleted +``` + + ## License [![CC0](https://i.creativecommons.org/p/zero/1.0/88x31.png)](https://creativecommons.org/publicdomain/zero/1.0/)