GitHub & GitLab Sync
Synchronize your GitBook docs with GitHub or GitLab with GitBook’s bi-directional integration

Overview
Git Sync allows technical teams to sync GitHub or GitLab repositories with GitBook and turn a repo of 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 give feedback on changes directly in GitBook.
To configure repository directories, content roots, first pages, or navigation in code, see Content configuration for gitbook-docs.yaml, .gitbook.yaml, and SUMMARY.md.
Set up Git Sync
Working with AI Agents
When working on your docs locally with Git Sync, you can use GitBook's skill.md file to provide an AI coding assistant with context about GitBook's blocks, features, and best practices.
Head to Agent skills to learn more.
Last updated
Was this helpful?