Skip to content
Vegha Docs

Branches and Merging

Branches let you work on API changes in isolation, then merge them back. Vegha’s native git UI handles branch creation, checkout, and merging, including a dedicated resolver for conflicts.

From the Source Control panel you can:

  • Create a branch from the current commit
  • Checkout a branch to switch your working copy to it

Switching branches updates the .bru files on disk to match that branch’s history, so the workspace always reflects the branch you have checked out.

Merging brings the commits from one branch into another. Check out the branch you want to merge into, then merge the source branch. When the two branches changed different files — or different parts of the same file — git completes the merge automatically.

When both branches edit the same lines of a .bru file, the merge cannot complete automatically and Vegha opens the three-pane merge-conflict resolver:

PaneShows
LocalYour current branch’s version
IncomingThe version from the branch being merged
ResultThe merged output you are building

Work through each conflict by choosing the local side, the incoming side, or a combination. A live preview of the result updates as you make choices, so you can see the final .bru file before committing it.

When every conflict is resolved, save the result and commit the merge.