Get GitFlow Analytics running in 5 minutes with this hands-on tutorial.
By the end of this tutorial, you'll have:
- ✅ Created your first configuration file
- ✅ Analyzed a sample repository
- ✅ Generated your first reports
- ✅ Understood the key output files
Time required: ~5 minutes
Before starting:
- ✅ GitFlow Analytics is installed
- ✅ You have a GitHub personal access token
- ✅ You have command-line access
Create a simple configuration file to analyze a public repository:
# Create your first config file
cat > quickstart-config.yaml << EOF
github:
token: "\${GITHUB_TOKEN}"
repositories:
- owner: "octocat"
name: "Hello-World"
local_path: "./hello-world"
analysis:
# Analyze the last 4 weeks
weeks: 4
# Save reports in current directory
reports:
output_directory: "./reports"
EOF# Set your GitHub token (replace with your actual token)
export GITHUB_TOKEN="ghp_your_token_here"
# Or create a .env file
echo "GITHUB_TOKEN=ghp_your_token_here" > .env# Run the analysis (this will take 1-2 minutes)
gitflow-analytics -c quickstart-config.yaml
# Watch for output like:
# 🔍 Analyzing repositories...
# 📊 Processing commits...
# 📝 Generating reports...
# ✅ Analysis complete!After the analysis completes, you'll have several files in ./reports/:
# View generated files
ls -la reports/
# Expected output:
# weekly_metrics_YYYYMMDD.csv # Weekly developer metrics
# developers_YYYYMMDD.csv # Developer profiles
# summary_YYYYMMDD.csv # Project summary
# narrative_report_YYYYMMDD.md # Comprehensive markdown report1. Narrative Report (most important)
# View the comprehensive markdown report
cat reports/narrative_report_*.mdThis contains:
- Executive summary
- Team composition analysis
- Development patterns
- Key insights and recommendations
2. Developer Metrics
# View developer-specific metrics
head -5 reports/developers_*.csvShows commits, projects, and activity patterns per developer.
3. Weekly Trends
# View weekly activity trends
head -5 reports/weekly_metrics_*.csv Tracks development velocity over time.
Congratulations! You've successfully:
- Configured GitFlow Analytics with a YAML file
- Connected to GitHub using personal access token
- Analyzed repository history for the past 4 weeks
- Generated comprehensive reports with insights
The narrative report starts with key metrics:
- Total commits analyzed
- Active developers identified
- Primary programming languages
- Development velocity trends
For each developer, you'll see:
- Commit volume and percentage of total work
- Primary projects and focus areas
- Work patterns (focused vs. distributed)
- Contribution trends over time
The analysis reveals:
- Which projects are most active
- Developer distribution across projects
- Code change patterns and impact
- Collaboration indicators
"No commits found"
- The Hello-World repository is quite old; try analyzing a more recent repository
- Adjust the
weeksparameter to analyze a longer time period
"Authentication failed"
- Double-check your GitHub token is set correctly
- Verify the token has necessary permissions (
reposcope)
"Repository not found"
- Ensure the repository owner/name are correct
- Check that you have access to private repositories (if analyzing private repos)
- Simple Configuration: YAML files make setup straightforward
- Comprehensive Analysis: Rich insights from just Git history
- Multiple Output Formats: CSV for data, Markdown for readability
- No External Dependencies: Works without JIRA, Linear, or other PM tools
Now that you've completed the quick start:
# Edit the configuration to use your repository
vim quickstart-config.yaml
# Update the repository section:
repositories:
- owner: "your-username"
name: "your-repository"
local_path: "./your-repo"- ML Categorization - Enable automatic commit classification
- Organization Analysis - Analyze multiple repositories
- Custom Reports - Customize output formats
- Configuration Guide - Complete configuration reference
- Your First Analysis - Deeper dive into understanding output
- Examples - Real-world configuration examples
- Common Issues: Check Troubleshooting Guide
- Configuration Questions: See Configuration Guide
- Bug Reports: GitHub Issues
Great job completing the quick start! You're ready to explore more advanced GitFlow Analytics features.