GitHub Sync setup
Pro feature. Open Grafucci Code → GitHub Sync to connect a repository and sync snippet files on your schedule.
-
Connect GitHub (OAuth)
Click Connect GitHub on the GitHub Sync screen. Complete the OAuth Device Flow in your browser — no token copy-paste required for most setups.
-
Or use a personal access token (fallback)
Under Or use a personal access token, paste a fine-grained token limited to the target repository if OAuth is unavailable on your host.
-
Select repository and branch
Choose owner/repo and branch. Tokens are stored encrypted in your WordPress database.
-
Choose path layout
Flat layout stores all snippet files in one folder. By-type layout groups PHP, CSS, JS, and HTML into subfolders.
-
Link snippets to files
Map existing snippets to GitHub paths from the snippet editor sidebar, or import new files with Update from GitHub.
Warning
- Never commit tokens to the repository. Store them only through Grafucci Code.