Branching lets you create parallel versions of your project to test different ideas independently. Perfect for rapid prototyping - try multiple design directions, compare variations, and collaborate without affecting your main project.
Main branch: A---B---C---D---E
\
New branch X---Y---ZKey benefits:
Safe experimentation - Try changes without risk
Work in parallel - Multiple people on different versions simultaneously
Quick iteration - Test design variations before committing
Independent state - Each branch has its own checkpoints and chat history
There are two ways to create branches in Onlook: from the canvas or from the Branches panel.
The fastest way to branch while working.
How to create:
Look at the top of the canvas window
Click the current branch name
Select "Create new branch"
Name your branch
You're now working in the new branch
The new branch starts with your current project state.
Create and manage all branches from one location.
How to create:
Open the Branches panel in the left sidebar
Click "Create branch"
Choose which branch to branch off from
Name your new branch
Click create
Branching off any branch:
You can create a new branch from any existing branch, not just main. This lets you:
Try variations of an experiment
Test different approaches from the same starting point
Build on another team member's work
Move between branches to view different versions of your project.
How to switch:
1. Click the branch name at the top of the canvas
Select the branch you want to switch to
Your project loads with that branch's state
How to switch:
Open the Branches panel
View all available branches
Click the branch you want to work on
The canvas updates to show that branch
When you switch branches:
All your work in the current branch is automatically saved
The canvas loads the selected branch's latest state
AI chat shows that branch's history
Checkpoints reflect that branch's restore points
The Branches panel is your control center for all branch operations.
What you see:
List of all branches in your project
Current branch highlighted
Quick actions for each branch
Remove branches you no longer need.
How to delete:
Open the Branches panel
Find the branch you want to delete
Click the delete icon
Confirm deletion
When to delete:
Experiment didn't work out
Feature completed and changes moved to main
Cleaning up old test branches
Reducing clutter
Branches are perfect for specific scenarios. Here's when branching makes the most sense.
Try multiple approaches to the same problem.
Example workflow:
Main branch: Current homepage design
Create branches:
homepage-hero-v1: Traditional hero section
homepage-hero-v2: Video background hero
homepage-hero-v3: Animated illustration hero
Result: Compare all three, choose the best, implement in main
Build different versions to test with users or stakeholders.
Example workflow:
Main: Pricing page v1
Branch: pricing-simplified
Remove features comparison table
Focus on three clear tiers
Bigger CTAs
Branch: pricing-detailed
Add detailed feature breakdown
Include FAQ section
Add testimonials
Result: Test both versions, use data to decide
Multiple people work on the same feature from different angles.
Example workflow:
Main: Dashboard v1
Team member A: dashboard-charts
Adds data visualization
Team member B: dashboard-filters
Adds filtering system
Team member C: dashboard-mobile
Optimizes for mobile
Result: Review all three, combine best elements
Try bold changes without risk.
Example workflow:
Main: Current stable design
Branch: dark-mode-experiment
Complete dark mode implementation
New color palette
Redesigned components
Result: If successful, move to main. If not, delete branch.
Create branches at major milestones.
Example workflow:
Main: Active development
Branch: v1-complete
Save state when v1 finished
Branch: pre-redesign
Save state before major changes
Result: Always have stable versions to return to
Common patterns for using branches effectively.
Steps:
Start on main branch
Create experimental branch
Try changes without fear
If it works → manually implement in main
If it doesn't → delete branch
Best for: Bold ideas, major changes, risky experiments
Steps:
Start on main branch
Create multiple branches (v1, v2, v3)
Build different approaches in each
Compare results side-by-side
Choose winner → implement in main
Delete other branches
Best for: Design decisions, A/B tests, comparing approaches
Steps:
Start on main branch
Team members create feature branches
Everyone works independently
Review all branches together
Decide on final approach
Manually combine best elements in main
Best for: Team projects, parallel development, feature exploration
Steps:
Working on main branch
Reach a stable state
Create branch as checkpoint (e.g., "stable-v1")
Continue working on main
If things go wrong → switch to checkpoint branch
Start fresh from that stable point
Best for: Major milestones, before big changes, safety nets
Use clear, descriptive names that explain the branch purpose.
Good naming:
hero-video-background
mobile-nav-redesign
pricing-page-v2
dark-mode-experiment
checkout-flow-simplified
Bad naming:
test
branch1
new
temp
stuff
Create branches for:
Trying new design directions
Testing variations
Collaborating on features
Safe experimentation
Major changes
Don't create branches for:
Small tweaks (use restore points instead)
Quick fixes (just edit main)
Minor styling changes
Good practices:
Delete branches when done
Name branches clearly
Don't create too many at once
Review and clean up regularly
Document what each branch is testing
Remember:
Each branch has independent checkpoints
Changes don't transfer between branches
Switch branches to compare results
Can't merge automatically (yet)
Can I merge branches?
Not yet. Merging functionality is in development. For now, manually implement changes from experimental branches into your main branch.
What happens to checkpoints when I branch?
Each branch has independent checkpoints. The new branch starts with no checkpoints - they're created as you work in that branch.
Can I switch branches while AI is working?
Yes, however we recommend waiting for AI to finish before branching.
Do branches affect my project files?
Each branch represents a different state of your files. Switching branches loads that branch's version of the files.
How many branches can I create?
There's no hard limit, but keep your branch list manageable. Delete branches you're no longer using.
Can team members work on different branches?
Yes. Multiple people can work on different branches simultaneously. This is perfect for parallel exploration and collaboration.