GitHub & GitLab Sync
Synchronize your GitBook content with GitHub or GitLab with GitBook’s bi-directional integration.
Git Sync allows technical teams to synchronize GitHub or GitLab repositories with GitBook and turn Markdown files into beautiful, user-friendly docs. Edit directly in GitBook’s powerful editor while keeping content synchronized with your codebase on GitHub or GitLab.
Git Sync is bi-directional, so changes you make directly in GitBook’s editor are automatically synced, as are any commits made on GitHub or GitLab. This allows developers to commit directly from GitHub or GitLab and technical writers, instructional designers and product managers to edit, discuss and feedback changes directly in GitBook.
Permissions Administrators and creators can enable and configure Git Sync.
Product Demo
Learn more about

Enabling GitHub Sync
Learn how to enable the integration if you’re using GitHub

Enabling GitLab Sync
Learn how to enable the integration if you’re using GitLab

Content configuration
Learn how to configure your content — including structure, summary and re-directs

GitHub pull request previews
Learn how to preview the content before merging

Commit messages & Autolink
Learn how to fine-tune GitSync through commit messages

Monorepos
Learn how to configure GitSync with a monorepo

Troubleshooting
Learn how to resolve common problems
Last updated
Was this helpful?