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 Installation & Setup
Step 1: Install Git Scout
# Clone the repository
git clone https://github.com/malco-helper/git-scout.git
cd git-scout
# Auto-install everything
./scripts/setup.shOr manual installation:
npm install && npm run build && npm linkStep 2: Auto-Configure Your Repositories ๐
# ๐ฏ ONE COMMAND TO RULE THEM ALL
git-scout initWhat 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๐ฏ 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 configurationSafe 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 branchgit-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 authorgit-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 activitygit-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 50Multiple 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 packageNo repositories found
git-scout init --scan-path ~/your-dev-folder # Custom scan pathPermission issues
chmod +x scripts/setup.sh # Make setup script executableConfig issues
rm ~/.git-scout/config.json && git-scout init # Reset and reconfigure๐๏ธ Uninstallation
# Remove global command
npm unlink -g git-scout
# Remove configuration (optional)
rm -rf ~/.git-scout
# Remove source code
rm -rf /path/to/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 buildArchitecture
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
- GitHub/GitLab API integration
- Commit message analysis
- Team productivity metrics
- CSV/Excel export
- Web dashboard
- Real-time monitoring
- Custom report templates
๐ 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
--jsonflag 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