Branch and Merge¶
Multi-branch data workflows with Blacklake.
Overview¶
This tutorial demonstrates how to use branching and merging in Blacklake for collaborative data workflows.
Branching Workflow¶
1. Create Feature Branch¶
# Create and switch to feature branch
blacklake branch feature/new-analysis
blacklake checkout feature/new-analysis
Expected Output:
2. Add Data to Branch¶
# Add analysis data
blacklake meta add analysis-results.csv \
--title "Sales Analysis Results" \
--creator "Analytics Team" \
--description "Statistical analysis of sales data"
blacklake add analysis-results.csv
blacklake commit -m "Add sales analysis results"
3. Merge Back to Main¶
# Switch to main branch
blacklake checkout main
# Merge feature branch
blacklake merge feature/new-analysis
Expected Output:
Collaborative Workflow¶
1. Clone Repository¶
2. Create Personal Branch¶
3. Make Changes¶
# Add your data
blacklake meta add my-analysis.csv \
--title "My Analysis" \
--creator "John Doe" \
--email "john@company.com"
blacklake add my-analysis.csv
blacklake commit -m "Add my analysis"
4. Push Changes¶
Advanced Branching¶
Branch Management¶
# List branches
blacklake branch
# List remote branches
blacklake branch -r
# Delete branch
blacklake branch -d feature/old-analysis
Branch Comparison¶
# Show differences between branches
blacklake diff main feature/new-analysis
# Show commit history
blacklake log --graph --oneline
Next Steps¶
- Ingest Dataset - Basic data ingestion
- CLI Reference - Complete command documentation
- Architecture - System overview