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 folders, then update

    Tick GitHub folders to scan and WordPress folders to limit the update. Update from GitHub opens a review before anything is applied. Hidden files stay out of that update until you restore them.

  5. Link snippets to files

    From the snippet editor, GitHub Sync is the first sidebar card. Link a file, or import new files from the review screen.

GitHub screen before connecting
Before connecting: Connect GitHub, or use a personal access token
GitHub screen after connecting
After connecting: repository, branch, and sync status
Warning
  • Never commit tokens to the repository. Store them only through Grafucci Code.