Skip to content
Vegha Docs

Git Overview

Vegha workspaces are folders on disk and collections are plain-text .bru files, which makes them a natural fit for version control. Vegha includes a built-in git UI so you can manage history without leaving the app.

Because every request, environment, and collection is a plain-text file, your API project behaves like source code:

  • Changes produce readable, line-level diffs
  • Branches and merges work the same way they do for code
  • Pull requests can review API changes alongside application changes

Vegha’s git support is built on LibGit2Sharp — no external git binary is required. Everything runs in-process and works the same across platforms.

The Source Control panel is where you stage changes, write commits, and run remote operations. Supported operations include:

OperationPurpose
initStart tracking the current workspace
cloneCopy a remote repository into a new workspace
branch / checkoutCreate and switch branches
stage / commitRecord changes to history
push / pull / fetchSync with a remote
stashSet aside uncommitted work
diffInspect changes line by line
mergeCombine branches, with a conflict resolver
  • Init turns an existing workspace folder into a git repository — use this when you already have collections locally.
  • Clone creates a workspace from an existing remote repository — use this when collections already live in git.

Vegha authenticates to remotes two ways, with credentials stored in the OS keystore:

  • HTTPS with a personal access token (PAT)
  • SSH with a key pair

Commit your .bru collections — that is the point. But keep machine-specific and sensitive data out of history:

  • Local secret values and credentials
  • Editor or OS scratch files

Continue with committing, pushing, and pulling and branches and merging.