Skip to content

Commit, pull and push a linked SQL folder from the sidebar #3627

Closed

Description

@datlechin

Problem

A linked SQL folder is meant to be a Git repo of shared queries (features/favorites.mdx, Linked SQL folders: "clone it, link it, and a git pull keeps the team current"). TablePro reads that repo but never writes to it. The sidebar shows a status letter per file, Show History, Restore This Version and Discard Changes…, and the page ends with "Stage, commit, and push in your Git client. The sidebar reads the repository and never touches the index."

apple/TablePro/Core/Git/GitClient.swift has repositoryInfo, status, trackedFiles, history and blob, all reads. So fixing one query for the team means leaving TablePro for a Git client or Terminal to commit and push it, and pulling a teammate's change means the same trip.

Proposed solution

  • Commit… on a changed linked file and on the linked folder row. A sheet lists the changed files under that folder with checkboxes and a diff of each, takes a message, and stages and commits only the files checked.
  • Pull and Push on the linked folder row, running the user's own git with their config, credential helper and SSH agent. The output shows when a command fails.
  • Only paths under the linked folder are staged, so a repository that also holds application code is not touched outside the SQL folder.
  • No force push and no rebase. A pull that cannot fast-forward stops and says to finish it in a Git client.
  • Commit runs the repository's hooks as git commit in Terminal does, so the "Link only repositories you trust" warning on the page covers this too.
  • Hidden, like the status letters, when no git is installed.

Done means: edit a linked .sql file, commit it with a message and push it from the sidebar, and git log in Terminal shows the commit on the remote branch.

Alternatives considered

A Git client or Terminal, as the docs say today.

Platform

macOS

Related database type

N/A / General

Activity

  1. added
    enhancement
    platform-macos
    on Oct 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementplatform-macos

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions