Skip to main content

Git

Open Settings with Cmd+, and select the Git tab to configure branch naming, worktree storage, and file discovery for new worktrees.

Options​

OptionDescriptionDetails
Default branch name prefixA string prepended to every new branch name you create. Use this to namespace branches by author or team.Example: yourname/, feat/
Worktree storage pathThe root directory where Braid stores worktree checkouts. Each project gets a subdirectory, and each worktree gets a folder inside that.Default: ~/Braid/worktrees/
Discovery patternsFilename patterns that Braid looks for in the main worktree when creating a new worktree. Matched files are offered for automatic copying into the new worktree. Supports wildcards.Example: .env*, .tool-versions, local.properties

How discovery patterns work​

When you create a worktree, Braid scans the source worktree for files matching your discovery patterns. Matched files appear in a checklist so you can choose which ones to copy. This is useful for environment files, local configuration, and secrets that are not committed to Git.

Pattern examples:

PatternMatches
.env*.env, .env.local, .env.development
*.localsettings.local, config.local
.tool-versionsExact filename match

Tips​

  • The branch prefix is concatenated directly with the branch name. If you want a separator, include it in the prefix (e.g., yourname/ not yourname).
  • Changing the worktree storage path does not move existing worktrees. You need to re-add them from the new location.
  • Discovery patterns are checked at worktree creation time only. They do not sync files after the worktree exists.