Files
Crumb-Core-v.1/git_doktor.sh

29 lines
591 B
Bash
Executable File

#!/bin/bash
# 🏥 CrumbForest Git Doktor
echo "🌲 Checking Git Health..."
echo "----------------------------------------"
# 1. Status
echo "📋 Git Status:"
git status -s -b
echo ""
# 2. Remote check
echo "🌍 Remote:"
git remote -v | head -n 1
echo ""
# 3. Last 5 Commits
echo "📜 Recent History:"
git log -n 5 --graph --decorate --pretty=format:"%C(yellow)%h%Creset %C(green)%ad%Creset | %s %C(bold blue)[%an]%Creset" --date=short
echo ""
echo ""
# 4. Changes in last commit
echo "📊 Last Commit Stats:"
git show --stat --oneline HEAD
echo ""
echo "✅ Diagnosis Complete."