Why use Version Control?
Restore Workspace History Each commit represents the exact state of your Airfold workspace at a given point in time. Easily navigate to and restore any previous version of the workspace to:- Revert breaking changes
- Recover pipeline configurations or source definitions that were accidentally modified
- Avoid overwriting others’ changes (a common risk when using a shared UI), where actions like multiple users pressing
save
on a query edit can accidentally overwrite each other’s changes - Git merge enables a structured way to combine contributions, reducing the risk of such conflicts and ensuring every update is reviewed
- Store your Airfold workspace files in a shared Git repository, ensuring all team members access to latest udpates
- Team members can work on individual tasks in separate branches, avoiding conflicts with ongoing production or staging workflows
- Use pull requests to propose changes and review code before merging
- Use staging for testing new pipelines, changes, or integrations
- Deploy only validated changes to production
File Structure
A typical Airfold project is organized into the following directory structure:- Example: /pipes/sales_metrics.yaml
- See more on pipe.yaml
- Example: /sources/sales.yaml
- See more on source.yaml
- Example: /endpoints/sales_over_time.yaml
Workflow
Initialize
From your project directory, use Git to initialize version control:Commit & Push
Commit existing workspace files to the repository:Branch for Staging and Production
Create a branch for staging:staging
branch to test new changes:
Best Practices
Use pull requests for any workspace updates:- Enable code reviews before merging changes
main
for production-ready workspace configurationsstaging
for test configurations- See more on Staging and Production