GitHub Sync setup

Pro feature. Open Grafucci Code → GitHub Sync to connect a repository and sync snippet files on your schedule.

  1. 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.

  2. 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.

  3. Select repository and branch

    Choose owner/repo and branch. Tokens are stored encrypted in your WordPress database.

  4. Choose path layout

    Flat layout stores all snippet files in one folder. By-type layout groups PHP, CSS, JS, and HTML into subfolders.

  5. Link snippets to files

    Map existing snippets to GitHub paths from the snippet editor sidebar, or import new files with Update from GitHub.

GitHub Sync overview after connect
GitHub Sync workspace — status overview, Check status, and sync actions
Warning
  • Never commit tokens to the repository. Store them only through Grafucci Code.