Git Health Check
Diagnose Git repository health and configuration issues, inspired by zeroclaw's diagnostic tools.
Setup
No dependencies required.
Usage
Full Repository Check
{baseDir}/git-health.sh
Check specific aspects
{baseDir}/git-health.sh --commits # Check commit quality {baseDir}/git-health.sh --branches # Check branch status {baseDir}/git-health.sh --remotes # Check remote configuration {baseDir}/git-health.sh --hooks # Check git hooks {baseDir}/git-health.sh --size # Check repo size
Output
ΓòöΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòù Γòæ Git Repository Health Report Γòæ ΓòÜΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓò¥
Γ£ô Git Initialized Repository properly initialized Γ£ô Remote Config origin: git@github.com:user/repo.git Γ£ô Main Branch main branch exists ! Unpushed Commits 3 commits not pushed to origin/main Γ£ô Commit History 47 commits, last: 2 hours ago Γ£ô Large Files No files larger than 10MB Γ£ô Git Hooks 2 hooks configured Γ£ô Stash Status Clean (0 stashes)
═══════════════════════════════════════════════════════════ Overall Status: ⚠️ WARNING (1 issue found) ═══════════════════════════════════════════════════════════
When to Use
-
Before submitting PRs
-
Troubleshooting git issues
-
Repository maintenance
-
CI/CD pipeline checks
-
Onboarding new developers