Prerequisite: Connect GitHub (workspace)
Before linking repositories, an owner or admin must connect your GitHub organization in Settings → GitHub. After that, you can link repos to individual Queries.Prepare your repository
Use a GitHub repository to store your Query SQL. It can be empty. A dedicated repo per Query (or a shared repo with one file per query) keeps things clear.Link the repository to a Query
In the Queries list, use the Versioning column:- Click Connect repository for the Query you want to version.
- In the dialog, select the GitHub repository (and branch, if offered) and confirm.