@@ -271,25 +271,49 @@ git x health
271271```shell
272272🏥 Repository Health Check
273273==============================
274+ ⠁ [00:00:01] [########################################] 8/8 Health check complete!
274275✅ Git configuration: OK
275276✅ Remotes: OK
276277✅ Branches: OK
277278✅ Working directory: Clean
278279✅ Repository size: OK
280+ ⚠️ Security: Potential issues found
281+ ✅ .gitignore: Looks good
282+ ✅ Binary files: OK
279283
280- 🎉 Repository is healthy!
284+ 🔧 Found 3 issue(s):
285+ 🔒 2 potentially sensitive commit message(s) found:
286+ • a1b2c3d Add API key configuration
287+ • d4e5f6g Update secret token handling
288+ 🔐 1 potentially sensitive file(s) in repository:
289+ • config/private.key
290+ ⚠️ 2 environment file(s) found - ensure no secrets are committed:
291+ • .env.local
292+ • .env.production
281293```
282294
283295#### What it checks:
296+ - **Git configuration** - Validates user.name and user.email settings
297+ - **Remotes** - Ensures remote repositories are configured
284298- **Working directory status** - Detects uncommitted changes
285299- **Untracked files** - Counts files not under version control
286300- **Stale branches** - Identifies branches older than 1 month
287301- **Repository size** - Warns about large repositories that may need cleanup
288302- **Staged changes** - Shows files ready for commit
303+ - **Security issues** - Scans for potential credentials in history and sensitive files
304+ - **.gitignore effectiveness** - Suggests improvements to ignore patterns
305+ - **Binary files** - Identifies large binary files that might benefit from Git LFS
306+
307+ #### Enhanced Features:
308+ - **Progress Indicator**: Real-time progress bar showing current check being performed
309+ - **Detailed Security Reporting**: Shows exactly which commits, files, and patterns triggered security warnings
310+ - **Specific Recommendations**: Lists actual files and examples instead of just counts
311+ - **Performance Optimized**: Efficiently scans large repositories with visual feedback
289312
290313Useful for:
291314- Daily repository maintenance
292315- Pre-commit health checks
316+ - Security auditing
293317- Identifying cleanup opportunities
294318- Team onboarding (ensuring clean local state)
295319
@@ -312,8 +336,21 @@ git x info
312336✅ Status: Up to date
313337⚠️ Working directory: Has changes
314338📋 Staged files: None
339+ ❌ No open PR for current branch
340+ 📊 vs main: 2 ahead, 1 behind
341+
342+ 📋 Recent activity:
343+ * a1b2c3d Add new feature (2 hours ago) <Alice>
344+ * d4e5f6g Fix bug in parser (4 hours ago) <Bob>
345+ * g7h8i9j Update documentation (1 day ago) <Charlie>
315346```
316347
348+ #### Enhanced Features:
349+ - **Recent activity timeline** - Shows recent commits across all branches with author info
350+ - **GitHub PR detection** - Automatically detects if current branch has an open pull request (requires `gh` CLI)
351+ - **Branch comparisons** - Shows ahead/behind status compared to main branches
352+ - **Detailed view** - Use any git-x command to see additional details
353+
317354---
318355
319356### `large-files`
@@ -453,6 +490,8 @@ git x since origin/main
453490git x stash-branch create new-feature
454491git x stash-branch clean --older-than 7d
455492git x stash-branch apply-by-branch feature-work
493+ git x stash-branch interactive
494+ git x stash-branch export ./patches
456495` ` `
457496
458497# ### Subcommands:
@@ -482,9 +521,36 @@ This will delete 3 stashes: stash@{0}, stash@{1}, stash@{2}
482521** ` apply-by-branch < branch-name> ` ** — Apply stashes from a specific branch
483522- ` --list` — List matching stashes instead of applying
484523
485- Helps manage stashes more effectively by associating them with branches.
524+ ** ` interactive` ** — Interactive stash management with fuzzy search
525+ - Visual menu for applying, deleting, or creating branches from stashes
526+ - Supports multiple selection for batch operations
527+ - Shows stash content and branch associations
528+
529+ ** ` export < output-dir> ` ** — Export stashes to patch files
530+ - ` --stash < ref> ` — Export specific stash (default: all stashes)
531+ - Creates ` .patch` files that can be shared or archived
532+ - Useful for backing up or sharing stash content
533+
534+ # ### Example Output for `interactive`:
535+
536+ ` ` ` shell
537+ 📋 What would you like to do?
538+ ❯ Apply selected stash
539+ Delete selected stashes
540+ Create branch from stash
541+ Show stash diff
542+ List all stashes
543+ Exit
544+
545+ 🎯 Select stash to apply:
546+ ❯ stash@{0}: WIP on feature: Add authentication (from feature-auth)
547+ stash@{1}: On main: Fix README typo (from main)
548+ stash@{2}: WIP on bugfix: Debug API calls (from api-fixes)
549+ ` ` `
550+
551+ Helps manage stashes more effectively by associating them with branches and providing modern interactive workflows.
486552
487- ** Note:** The ` clean ` command will prompt for confirmation before deleting stashes to prevent accidental data loss.
553+ ** Note:** Interactive and destructive commands will prompt for confirmation to prevent accidental data loss.
488554
489555---
490556
0 commit comments