> ## Documentation Index
> Fetch the complete documentation index at: https://docs.paradime.io/llms.txt
> Use this file to discover all available pages before exploring further.

# gitRepository

> How the API key's workspace reaches its git repository



**query** `gitRepository: GQLWorkspaceGitConnection!`

## Returns

`GQLWorkspaceGitConnection!`

**`connection`**: `GQLGitConnection!`

---

**`state`**: `GitConnectionState!`

---

**`gitUri`**: `String`

---

**`hasDeployKey`**: `Boolean!`

A deploy-key clone exists to fall back to

---

**`pendingInstallRequests`**: `[GQLGithubInstallRequest!]!`



## Related topics

- [Connect through the GitHub App](https://docs.paradime.io/products/settings/git-repositories/connect-with-github-app.md)
- [Workspace Management API](https://docs.paradime.io/developers/graphql-api/api-reference/workspace-management-api.md)
- [Clone your repository through the GitHub App, not only an SSH deploy key](https://docs.paradime.io/changelog/2026-11-04/github-app-connection.md)
- [Git Repositories](https://docs.paradime.io/products/settings/git-repositories/index.md)
- [Git and repository errors](https://docs.paradime.io/get-help/error-list/git-and-repository-errors.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.