# Source Control
URL: https://docs.awellhealth.com/docs/data/source-control

> For the complete documentation index, see [llms.txt](https://docs.awellhealth.com/llms.txt).





**Source Control** syncs care flows as code to a remote Source Control Management provider such as
GitHub. Once it's set up, the care flow syncs to the repository every time a new version is published.

## Care flow changes become reviewable as diffs [#care-flow-changes-become-reviewable-as-diffs]

What Source Control makes possible:

1. **Care flows as code.** Care flow components live in a repository the organization owns.
2. **CI/CD integration.** Care flow updates can flow through the pipelines the team already runs.
3. **Code-based testing.** Verify care flow behavior with existing test tooling.
4. **Visibility on changes.** Inspect and diff versions of a care flow as code.

Visibility changes how a clinical change gets reviewed: a diff is something a colleague can check; a
description of what someone changed in a canvas is not.

## Configure it from the care flow's Settings tab [#configure-it-from-the-care-flows-settings-tab]

1. Select the care flow to put under Source Control.
2. Go to the **Settings** tab and choose **Source Control** to configure the repository.
   1. Paste the repository URL into the repository URL field.
   2. Paste the access token into the token field.
3. **Test** the configuration to confirm the permissions are right.
   <img alt="The Source Control settings on a care flow, with fields for repository URL, branch and access token" src="__img0" />

Three values are needed: the **repository URL**, the **branch** every change is pushed to, and a
**personal access token** with `repo`, `contents:read`, `contents:write` and `metadata:read`. **Test
configuration** checks the connection before saving.
Awell stores the configuration and
uses it to create and delete a branch.

For the full provider walkthrough, see
[Set up Source Control](/docs/data/set-up-source-control).

## Editing the repository does not change the care flow [#editing-the-repository-does-not-change-the-care-flow]

The sync is **one-way**, and Source Control is set up per care flow per environment.
[How syncing works](/docs/data/syncing-to-scm) has the detail.

## Next steps [#next-steps]

**Next:** [Set up Source Control](/docs/data/set-up-source-control).
