Browse local Git SQL projects
Inspect SQL files, local branch state, and diffs without leaving the workspace.
When to use this
Link a local repository, open a SQL file, review its status, and switch only when the working tree is clean.
Use this to browse SQL files and local changes in an existing Git checkout from SqlOtter.
Before you start
Use an existing local Git checkout and branch.
Steps
- Open AI & Sql Editor > Git SQL Project and select a local repository.
- Review SQL files, current branch, worktree state, and available diffs.
- Open a SQL file and resolve unsaved editor changes before replacing text.
- Switch an existing local branch only after the displayed guards pass.
How to verify the result
The editor opens the selected repository file while Git branch state remains local.
Troubleshooting
- If a repository is not listed, verify its local folder and Git metadata and make sure the current user can read it.
- If the branch or diff looks stale, refresh the local view; do not assume the viewer has fetched remote updates.
Limits
- The Git view does not create commits or sync a remote repository.
- Workspaces linked to the same checkout share its files and branch state.