# 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.
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.
Create a fine-grained token that can write to that one repository. Follow Create a GitHub token for Git Sync, then copy the token.
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.
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.
Open the repository. You'll find:
get-started/ or artifacts/.artifacts/canvas/canvas.md.title and a cloudairy_id. The id is how Cloudairy matches a file to its page, so leave it as it is when you edit the file.Pictures stay on Cloudairy: the Markdown links to them, and they show on GitHub without being copied into the repository.