Package Exports
- git-scout
- git-scout/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (git-scout) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
๐ Git Scout
A powerful CLI tool for managing and analyzing multiple Git repositories with advanced statistics and beautiful visualizations.
โจ Key Features
- ๐ Auto-Discovery: Automatically find and configure Git repositories with
git-scout init
- ๐ Multi-Repository Management: Track multiple Git projects from a single interface
- ๐ฟ Interactive Branch Explorer: Browse branches with detailed commit information
- ๐ Today's Activity Dashboard: Get instant insights into daily development activity
- ๐ Comprehensive Statistics: Generate detailed reports with author and file-level analytics
- ๐จ Beautiful Tables & Colors: ASCII tables with syntax highlighting and intuitive color coding
- ๐ Flexible Date Parsing: Support for relative dates (7d, today, yesterday) and absolute dates
- ๐ค JSON Export: All commands support JSON output for integration with other tools
- ๐ macOS Optimized: Built specifically for macOS with proper timezone handling and safe scanning
- ๐ก๏ธ Privacy-Focused: Avoids sensitive directories (Photos, Music, etc.) - no permission requests
โก Quick Start (30 seconds)
# 1. Install globally
npm install -g git-scout
# 2. Auto-configure your repositories
git-scout init
# 3. Start analyzing!
git-scout today
๐ Installation & Setup
Step 1: Install Git Scout
๐ฏ Recommended: Install from NPM (Easiest)
# Install globally with npm
npm install -g git-scout
# Or install globally with yarn
yarn global add git-scout
๐ง Development: Clone from GitHub
# Clone the repository
git clone https://github.com/malco-helper/git-scout.git
cd git-scout
# Auto-install everything
./scripts/setup.sh
Or manual installation:
npm install && npm run build && npm link
Step 2: Auto-Configure Your Repositories ๐
# ๐ฏ ONE COMMAND TO RULE THEM ALL
git-scout init
What this does:
- ๐ Automatically scans for Git repositories in safe directories
- ๐ Extracts project descriptions from package.json/README files
- โก Creates configuration instantly - no manual setup needed
- ๐ก๏ธ Respects macOS privacy - no permission requests for Photos/Music/etc.
Step 3: Start Analyzing!
# View today's activity
git-scout today
# Explore branches
git-scout branches
# Generate weekly statistics
git-scout stats --since 7d
๐ธ Demo Gallery
See Git Scout in action with these beautiful terminal interfaces:
๐ฏ Today's Activity Dashboard
๐ Git Scout - Today's Activity
๐ PROJECT: git-scout | ๐
Date: September 30, 2025
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Today's Activity Summary โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ Total Commits: 8 | Files Changed: 23 | Lines Added: +487 | Removed: -123 โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ฅ AUTHORS โ COMMITS โ FILES โ +LINES โ -LINES โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโผโโโโโโโโผโโโโโโโโโผโโโโโโโโโค
โ malco-helper โ 5 โ 15 โ +312 โ -89 โ
โ John Doe โ 2 โ 6 โ +125 โ -23 โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโดโโโโโโโโดโโโโโโโโโดโโโโโโโโโ
๐ฟ Interactive Branch Explorer
๐ Git Scout - Branch Explorer
๐ฟ BRANCHES OVERVIEW
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ ๐ main (current) - 45 commits ahead โ
โ ๐ฅ develop - 12 commits ahead, 3 commits behind โ
โ ๐ feature/auth - 8 commits ahead, 1 commit behind โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ Comprehensive Analytics
๐ Git Scout - Comprehensive Statistics
๐
PERIOD: Last 30 days | Total Commits: 156 | Net Change: +3,333 lines
๐ฅ AUTHOR STATISTICS
โโโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโฌโโโโโโโโฌโโโโโโโโโฌโโโโโโโโโฌโโโโโโโโโโโโโโค
โ malco-helper โ 89 โ 156 โ +2,845 โ -678 โ ๐ High โ
โ John Doe โ 34 โ 45 โ +987 โ -234 โ ๐ Medium โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโดโโโโโโโโดโโโโโโโโโดโโโโโโโโโดโโโโโโโโโโโโโโ
โ๏ธ Interactive Setup Wizard
๐ Git Scout - Initial Setup
๐ฏ Welcome to Git Scout! Let's set up your multi-repository workspace.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ ๐ Quick Setup Options โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ 1. ๐ฏ Auto-Discovery (Recommended) - Automatically find repositories โ
โ 2. ๐ง Manual Configuration - Add repositories manually โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ CI/CD Integration
GitHub Actions
Automate your repository analytics with our GitHub Action! Get weekly reports sent directly to Slack.
Quick Setup
# .github/workflows/weekly-report.yml
name: Weekly Analytics Report
on:
schedule:
- cron: "0 9 * * MON" # Every Monday at 9 AM
workflow_dispatch:
jobs:
weekly-report:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: malcohelper/git-scout/.github/actions/git-scout@main
with:
slack-webhook-url: ${{ secrets.SLACK_WEBHOOK_URL }}
slack-channel: "team-updates"
slack-username: "Git Scout Bot"
report-title: "Weekly Analytics Report"
Features
- ๐ค Slack Integration - Automated reports sent directly to Slack channels
- ๐ Detailed Metrics - Commits, files changed, contributors, and line changes
- โฐ Scheduled Reports - Weekly/monthly automated analytics
- ๐จ Formatted Messages - Beautiful Slack Block Kit formatting
- ๐ง Zero Configuration - Auto-creates config, works out of the box
- ๐ก๏ธ Error Handling - Clear troubleshooting tips when issues occur
Example Slack Report
Git Scout automatically posts formatted reports to your Slack channel:
๐ Weekly Analytics Report
Repository: your-org/your-repo
Date: 2025-10-01 09:00 UTC
โโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ Key Metrics
Commits Files Changed
19 23
Contributors Lines Changed
3 +473 / -300
โโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ฅ Top Contributors
โข Alice: 12 commits
โข Bob: 5 commits
โข Charlie: 2 commits
๐ View Full Documentation โ
๐ฏ Core Commands
git-scout init
- Auto Setup ๐
The easiest way to get started!
git-scout init # Auto-discover repositories
git-scout init --scan-path ~/MyProjects # Scan specific directory
git-scout init --global # Force global configuration
Safe Scanning:
- โ
Scans:
~/Projects
,~/Dev
,~/Code
,~/GitHub
,~/Documents/Projects
- โ Avoids: Photos, Music, Movies, System directories (no permission requests!)
git-scout today
- Daily Activity
git-scout today # Today's activity
git-scout today --author alice # Filter by author
git-scout today --branch main # Filter by branch
git-scout stats
- Comprehensive Analytics
git-scout stats --since 7d # Weekly statistics
git-scout stats --since "2025-09-01" # Since specific date
git-scout stats --author alice --json # JSON output for specific author
git-scout branches
- Branch Explorer
git-scout branches # Interactive branch explorer
git-scout branches --project "My App" # Specific project
git-scout branches --since 30d # Show recent activity
git-scout projects
- Project Management
git-scout projects # List and select projects
git-scout projects --json # JSON output
๐ Sample Output
Author Statistics
โโโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโฌโโโโโโโโฌโโโโโโโโโฌโโโโโโโโโ
โ AUTHOR โ COMMITS โ FILES โ +LINES โ -LINES โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโผโโโโโโโโโผโโโโโโโโโค
โ John Doe โ 15 โ 23 โ +487 โ -123 โ
โ Jane Smith โ 8 โ 12 โ +234 โ -67 โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโดโโโโโโโโดโโโโโโโโโดโโโโโโโโโ
Branch Information
๐ฟ Branch: develop
Latest commit: a1b2c3d
Author: John Doe
Date: 09/30/2025 14:30
Message: Add user authentication feature
Recent commits: 12
๐ Flexible Date Formats
Git Scout supports natural date expressions:
- Relative:
today
,yesterday
,7d
,30d
- Specific:
today 09:00
,2025-09-29
- ISO Format:
2025-09-29T10:00:00
โ๏ธ Configuration
Automatic (Recommended)
git-scout init # One command setup!
Manual Configuration
Create ~/.git-scout/config.json
:
{
"projects": [
{
"name": "My App",
"path": "/Users/yourname/Dev/my-app"
}
],
"defaultSinceDays": 1
}
๐ง Advanced Usage
JSON Integration
# Export data for other tools
git-scout stats --since 7d --json > weekly-report.json
git-scout today --json | jq '.stats.totalCommits'
Filtering & Analysis
# Team productivity analysis
git-scout stats --since 30d --author "team@company.com"
# Branch comparison
git-scout branches --project "Backend" --since 7d
# File change tracking
git-scout stats --since 7d --limit 50
Multiple Projects Workflow
# 1. Configure multiple projects
git-scout init
# 2. Select projects interactively
git-scout projects
# 3. Analyze across selected projects
git-scout today
๐ Troubleshooting
Command not found
npm link # Re-link the package
No repositories found
git-scout init --scan-path ~/your-dev-folder # Custom scan path
Permission issues
chmod +x scripts/setup.sh # Make setup script executable
Config issues
rm ~/.git-scout/config.json && git-scout init # Reset and reconfigure
๐๏ธ Uninstallation
If installed via NPM/Yarn:
# Remove global command (npm)
npm uninstall -g git-scout
# Remove global command (yarn)
yarn global remove git-scout
If installed from source:
# Remove global command
npm unlink -g git-scout
# Remove source code
rm -rf /path/to/git-scout
Remove configuration (optional):
# Remove configuration files
rm -rf ~/.git-scout
๐งช Development & Testing
Prerequisites
- Node.js >= 16.0.0
- Git
- macOS (primary target)
Development Setup
git clone <repository-url>
cd git-scout
npm install
npm run dev -- --help # Development mode
npm test # Run tests
npm run build # Production build
Architecture
src/
โโโ commands/ # CLI commands (init, projects, branches, today, stats)
โโโ git/ # Git integration and parsing
โโโ ui/ # Table rendering and formatting
โโโ utils/ # Date parsing and utilities
โโโ config.ts # Configuration management
โโโ types.ts # TypeScript definitions
โโโ index.ts # Main CLI entry point
๐ค Contributing
- Fork the repository
- Create feature branch:
git checkout -b feature/amazing-feature
- Commit changes:
git commit -m 'Add amazing feature'
- Push to branch:
git push origin feature/amazing-feature
- Open a Pull Request
๐ Roadmap
See our detailed ROADMAP.md for the complete development plan.
Highlights:
๐ฅ Phase 1: CI/CD Integration (Priority)
- GitHub Actions Integration - โ Completed! Slack reports, auto-config, scheduled analytics
- GitLab CI/CD Integration - MR comments and pipeline analytics
- Jenkins Plugin - Legacy CI/CD support
- Docker Image - Universal CI/CD integration
๐ Phase 2-3: API Integration
- GitHub API Integration - Organization-wide analytics, PR/Issue tracking, Security alerts
- GitLab API Integration - Group-wide analytics, MR/Issue tracking, Pipeline analytics
๐ Phase 4-6: Advanced Features
- Commit Message Analysis - Pattern detection and quality scoring
- Team Productivity Metrics - Cross-team comparison and trends
- Web Dashboard - Interactive analytics and visualization
- CSV/Excel Export - Data export and custom integrations
- Real-time Monitoring - Live activity tracking
- Custom Report Templates - Configurable report generation
๐ License
MIT License - see LICENSE file for details.
๐ก Pro Tips
- Start with
git-scout init
- it's the fastest way to get up and running - Use
--json
flag for integrating with other tools and scripts - Combine filters for precise analysis:
--author alice --branch main --since 7d
- Regular analysis helps track team productivity and code quality trends
- Safe scanning means no macOS permission popups - scan worry-free!
Made with โค๏ธ for developers who love beautiful, insightful Git analytics.
๐ Get started in 30 seconds: git-scout init