# GitHub

{% hint style="info" %}
Specify will sync your GitHub repository if you have a config file `.specifyrc.json` saved at the root of your GitHub repository.
{% endhint %}

## Prerequisites

Please make sure you have:

* A GitHub account
* A Specify account
* One or multiple Specify repositories containing some design tokens.

{% hint style="info" %}
Want to connect a GitHub repository from your GitHub organization? Please make sure you have the correct access rights. Otherwise, you'll need an owner to approve your installation request.
{% endhint %}

## Connecting Specify and GitHub

Once you've connected your GitHub account, Specify has to know what design tokens to synchronize and how.

1. Go to the Specify **Advanced Repository** you want to distribute design data from
2. Go to its "Destinations" page
3. Click on "Create Pipeline"
4. Select "GitHub application"
5. Connect or select your GitHub account
6. Select the GitHub repository you want to distribute your design data to
7. Name for your configuration file ([Learn More ↗︎](< https://help.specifyapp.com/en/articles/8672436-how-to-sync-design-tokens-in-a-github-monorepo>))
8. Create the Pull Request containing your configuration file
9. Merge the PR created by Specify containing your configuration file
10. Specify will now automatically sync design data to your GitHub repository 🎉

## Useful resources

* [How to sync design tokens in a GitHub monorepo](https://help.specifyapp.com/en/articles/8672436-how-to-sync-design-tokens-in-a-github-monorepo)
* [How to run Style Dictionary with a GitHub Action](https://specifyapp.com/blog/github-actions-style-dictionary)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.specifyapp.com/distribute/available-destinations/github.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
