Pricing
About
Terms
Privacy
Search…
What is GitBook
Getting started
Start exploring
Quick start
Spaces
What is a space?
Customizing a space
Space publishing
Collections
What is a collection?
Customizing a collection
Collection publishing
Organizations
What is an organization?
Create an organization
Organization settings
Billing settings
Editing content
Editing pages
Content structure
Rich content
Rich text
Markdown
Embeds
Accounts
Account settings
Collaboration
Permissions and inheritance
Member management
Activity and history
Comments
Features
Quick find
Import
Insights
PDF export
Share links
Visitor Authentication
SAML single sign-on
Internationalization
OpenAPI
Files
Privacy Policy disclosure
Integrations
Git Sync
Enabling GitHub Sync
Enabling GitLab Sync
Content Configuration
GitHub Pull-Request Preview
FAQ
Pricing
Free trial
Plans
Billing policy
Pro rata
Hosting
Custom domains
SEO
Resources
FAQ
Support
Firewall safelist
Keyboard shortcuts
Powered By
GitBook
Git Sync
A 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
1.
Add the GitBook App to your GitHub account or organization.
2.
You link your GitBook space to a GitHub repository.
3.
You select the branch you care about.
4.
GitBook changes are synced to GitHub as commits, GitHub changes are synced to GitBook as history commits.
Full GitHub sync instructions:
Enabling GitHub Sync
GitLab: How it works
1.
Generate an API token in GitLab and add it to your GitBook space
2.
You link your GitBook space to a GitLab repository.
3.
You select the branch you care about.
4.
GitBook changes are synced to GitLab as commits, GitLab changes are synced to GitBook as history commits.
Full GitLab setup instructions:
Enabling GitLab Sync
Features - Previous
Privacy Policy disclosure
Next
Enabling GitHub Sync
Last modified
8mo ago
Export as PDF
Copy link
Contents
A bi-directional Git integration
GitHub: How it works
GitLab: How it works