Create a branch, a copy of main, to change project files without touching what is live. Your changes stay off main until you merge them.
Before you start
You need a project. See Create a project.
Create a branch
- Change the heading in
app/page.tsx, then push it to a new branch. Pushing a branch name that doesn't exist creates it:Shellnpx veryfront push --branch new-headline - Read the output. You should now see
Pushed to branch "new-headline"and that branch's preview address.
Try it in a sandbox
Create a project
Push it
Change the heading
Check it
Try it out
Delete a branch
- Click the branch menu, which reads
new-headline. - Click Delete branch.
- Confirm with Delete branch. You should now see "Branch deleted" and the branch menu back on
main.