# GitHub Sync

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

## 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

- [Prompts Manager Overview](https://help.totalctrl.app/en-US/articles/prompts-manager-overview)
- [Test a prompt with evaluations](https://help.totalctrl.app/en-US/articles/test-a-prompt-with-evaluations)
- [Build a test dataset](https://help.totalctrl.app/en-US/articles/build-a-test-dataset)
- [Edit a prompt and save a version](https://help.totalctrl.app/en-US/articles/edit-a-prompt-and-save-a-version)
- [Promote a version with labels](https://help.totalctrl.app/en-US/articles/promote-a-version-with-labels)

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