Bi-directional Git integration
With GitBook you can synchronize your content with GitHub or GitLab repositories and keep your content consistently up-to-date.

GitHub: How it works
Add the GitBook App to your GitHub account or organization.
You link your GitBook space to a GitHub repository.
You select the branch you care about.
GitBook changes are synced to GitHub as commits, GitHub changes are synced to GitBook as history commits.
Full GitHub sync instructions:
Enabling GitHub SyncGitLab: How it works
Generate an API token in GitLab and add it to your GitBook space
You link your GitBook space to a GitLab repository.
You select the branch you care about.
GitBook changes are synced to GitLab as commits, GitLab changes are synced to GitBook as history commits.
Full GitLab setup instructions:
Enabling GitLab SyncLast updated
Was this helpful?