git sync

Keep your docs and your codebase in sync

Synchronize GitBook with GitHub or GitLab using a two-way Git sync, so developers and writers can contribute through the tools and workflows they already use

Image
Image
Image

Git Sync

Collaborate on docs like you collaborate on code

Git Sync lets your teams update your docs in our visual editor or in code — with everything staying perfectly in sync.

Image
Image

Git Sync

Collaborate on docs like you collaborate on code

Git Sync lets your teams update your docs in our visual editor or in code — with everything staying perfectly in sync.

Image
Image

“As a developer-first company, we love that GitBook syncs with GitHub. We’ve integrated our developer docs hosted in GitHub with the rest of our docs easily.”

Ron Cohen

,

CTO & co-founder

Reflag

Image
Image

“As a developer-first company, we love that GitBook syncs with GitHub. We’ve integrated our developer docs hosted in GitHub with the rest of our docs easily.”

Ron Cohen

,

CTO & co-founder

Reflag

How Git Sync works

Connect GitBook to GitHub or GitLab, then edit, review, and publish from either side while your content stays in sync.

01

Connect GitBook to a GitHub or GitLab repository

02

Edit Markdown in your repo or in GitBook’s visual editor

03

Use branches, reviews, and merge rules to control what’s published

04

Changes stay in sync across GitBook and your repository
Image
Image

Effortless setup

Syncing made simple

Our GitHub Sync and GitLab Sync integrations guide you through the setup process, so you can get a new sync set up in just a few minutes.

Image
Image

Effortless setup

Syncing made simple

Our GitHub Sync and GitLab Sync integrations guide you through the setup process, so you can get a new sync set up in just a few minutes.

A photo of Selma Bennamane
Image

“We needed a tool that would satisfy both our technical teams that feed documentation like API references, and our customer care team who produces user guides. That was an important factor in choosing GitBook.”

Selma Bennamane

,

Solutions Architect

Batch

A photo of Selma Bennamane
Image

“We needed a tool that would satisfy both our technical teams that feed documentation like API references, and our customer care team who produces user guides. That was an important factor in choosing GitBook.”

Selma Bennamane

,

Solutions Architect

Batch

GitHub & GitLab Sync

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

FAQs

What is Git Sync?

Image

Does GitBook support docs-as-code workflows?

Image

Can I use Git branches and pull-request-style workflows?

Image

Can I import existing documentation via GitHub or GitLab into GitBook?

Image

Do developers have to leave their code editor to update GitBook?

Image

Accurate docs. Better answers.

Your docs are already feeding AI. Are users getting the right answers or the wrong ones?

Accurate docs. Better answers.

Your docs are already feeding AI. Are users getting the right answers or the wrong ones?

Accurate docs. Better answers.

Your docs are already feeding AI. Are users getting the right answers or the wrong ones?

Accurate docs. Better answers.

Your docs are already feeding AI. Are users getting the right answers or the wrong ones?

Image
Image
Enterprise

Intelligent documentation that’s built to scale




FreedomPay thumbnail
FreedomPay logo - white
FreedomPay

How FreedomPay is rebuilding its integration experience with GitBook

The State of Docs Report 2026

State of Docs brings together insights from documentation experts from across the industry

FreedomPay thumbnail
FreedomPay logo - white
FreedomPay

How FreedomPay is rebuilding its integration experience with GitBook

The State of Docs Report 2026

State of Docs brings together insights from documentation experts from across the industry

FreedomPay thumbnail
FreedomPay logo - white
FreedomPay

How FreedomPay is rebuilding its integration experience with GitBook

The State of Docs Report 2026

State of Docs brings together insights from documentation experts from across the industry