• Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
petermillspaugh

petermillspaugh

docs

markdown docs site
Public
Like
docs
Home
Code
5
components
4
images
1
pages
2
styles
1
H
index.tsx
Branches
1
Pull requests
Remixes
History
Environment variables
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
pages
/
vals
/
branches.md
Code
/
pages
/
vals
/
branches.md
Search
10/16/2025
Viewing readonly version of main branch: v356
View latest version
branches.md
title:
Branches
description:
Val Branches are used for feature development, testing, and sharing

Every val has a main branch, which is the default branch. You can create branches off the main branch for feature development, testing, and sharing.

Managing branches

You need to be the owner of a val to create a branch. If you are not the owner, you can remix the val and send a pull request.

You can branch off main or any other branch from the default val page.

You can create, delete or rename any branch from the val's navigation sidebar.

Merging

You can merge changes from a branch back into its parent branch or from the parent into the branch.

Merging into parent branch

A branch can only be merged into its parent if there are no conflicts. All edits are copied to the parent val, including file and folder renames, additions, deletions, and relocations.

Merging from parent branch

You can pull updates from the parent val into your branch.

Merge conflicts

Merges cannot proceed if there are merge conflicts. Merge conflicts happen when the same line has been edited in both the parent and the branch.

You can resolve conflicts by:

  1. Merging from the parent into the branch
  2. Finding all merge conflicts in the val and resolving them. They will look like:
<<<<<<< main
This is the main branch
=======
This is the branch
>>>>>>> branch
  1. Once all merge conflicts are resolved, you can then merge the branch back into the parent.

Limitations

  • Parent-child relationships are fixed. You can't change the base branch or re-parent a branch. You can only merge a branch into what it was originally forked from.⁠
  • There is no support for squashing or rebasing changes.
  • You cannot change the name of the main branch.
FeaturesVersion controlCode intelligenceCLIMCP
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Open Source Pledge
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.