---
title: Git
---

By default, the [Persistent Query Controller](../sys-admin/pq-controller/pq-controller.md) stores a Persistent Query (PQ) script as part of the PQ's configuration. However, with Git integration, you can load a PQ's script directly from a Git repository instead.

For information on setting up and configuring Git integration, see [Git configuration](../sys-admin/pq-controller/pq-controller.md#git-configuration) in the Persistent Query Controller documentation.

## Deploy a PQ with Git

You can use a Git repository as a source for PQ scripts. The [Query Monitor](../interfaces/web/query-monitor.md) provides a **Use GIT for source** option that lets you select a script from the Git repository in a drop-down menu:

![The **Use GIT for source** box highlighted and checked in the Deephaven UI](../assets/source-from-git.png)

## Related documentation

- [Persistent Query Controller](../sys-admin/pq-controller/pq-controller.md)
- [Query Monitor](../interfaces/web/query-monitor.md)
