# Sync a wiki to GitHub

This walkthrough takes a wiki from Cloudairy to a GitHub repository, start to finish: make the repository, make a token, connect, sync, and check the result on GitHub.

1. Make the repository

On GitHub, create a new repository for the docs, for example acme/help. Private is fine. Let GitHub add a README so the main branch exists.

2. Make a token

Create a fine-grained token that can write to that one repository. Follow Create a GitHub token for Git Sync, then copy the token.

3. Connect the wiki

Open your wiki and click Git Sync in the wiki sidebar.

Pick GitHub as the Provider.

Under Repository, type owner/repository, for example acme/help.

Paste the token into Access token.

Under Branch, keep main or type another branch.

Pick a Direction:

Click Connect repository.

You see Repository connected, and the card shows Connected.

4. Sync

Click Sync now at the top of the page. The sync runs in the background, so you can keep working. When it finishes, Recent syncs shows a done row with the number of pages it wrote, for example 210 pushed, and the card shows Last synced.

Recent syncs with a finished sync

5. Check it on GitHub

Open the repository. You'll find:

Pictures stay on Cloudairy: the Markdown links to them, and they show on GitHub without being copied into the repository.

After the first sync

Next steps