> For the complete documentation index, see [llms.txt](https://learn.coremodels.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://learn.coremodels.io/user-guides/json-schema/push-to-github-json-schema.md).

# Push To Github (JSON Schema)

This guide assumes that you already have a schema in your CoreModels space, See also:

* [Importing a JSON Schema into CoreModels](/user-guides/json-schema/import-json-schema.md)
* [Exporting a JSON Schema from CoreModels](/user-guides/json-schema/export-json-schema.md)

***

1. From the features tray, Channels → GitHub
2. Choose the 'JSON Schema' Format.
3. Select the Space that you want to export your schema from.
4. Select the profile that includes the mappings that will guide the export process.
5. Click on 'GitHub File' which will open a modal to help you with selecting the destination file.
6. Select the root node that should be used for the export, and click 'Preview'

CoreModels will fetch the file and compare the schemas, it will show you the comparison results in two different views, the 'File Compare' and the 'Changes Grid'.

<figure><img src="/files/9JjwAmcbdJeSroFjLu3a" alt=""><figcaption><p>Github Push - file comparison</p></figcaption></figure>

<figure><img src="/files/AgOxhVG7kjd0PwieWsjb" alt=""><figcaption><p>Github Push - Changes grid</p></figcaption></figure>

7. The final step is to proceed to pushing the changes to github:
   1. You can either 'Push directly' by adding the commit message and clicking 'Commit changes'
   2. Or "Create a Pull Request", which will:
      1. Create a new branch
      2. Create a PR to merge the new branch to the selected branch from the settings step.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://learn.coremodels.io/user-guides/json-schema/push-to-github-json-schema.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
