# GitHub Sync

**Category:** [Prompt Manager](https://help.totalctrl.app/hc/totalctrl/totalctrl-help-center/en-US/categories/prompts)
**Updated:** 2026-10-04

## Why sync with GitHub?

GitHub sync lets you store your prompt library in a Git repository alongside your application code, enabling code-review workflows for prompt changes and CI/CD for prompt deployments.

## Connecting a repository

  
- Open a library and go to **Settings → GitHub sync**.
  
- Enter your GitHub Personal Access Token (PAT) with `repo` scope.
  
- Enter the repository name, branch, and folder path.
  
- Choose the **source of truth**: UI or Git.

---

## Related Articles

- [Create a prompt library](https://help.totalctrl.app/en-US/articles/create-a-prompt-library)
- [Evaluating Prompts](https://help.totalctrl.app/en-US/articles/evaluating-prompts)
- [Promote a version with labels](https://help.totalctrl.app/en-US/articles/promote-a-version-with-labels)
- [Prompts Manager Overview](https://help.totalctrl.app/en-US/articles/prompts-manager-overview)
- [Managing Prompts and Versions](https://help.totalctrl.app/en-US/articles/managing-prompts-and-versions)

---
[← Back to TotalCtrl Help Center](https://help.totalctrl.app/en-US/)