Pricing
About
Terms
Privacy
Search…
What is GitBook
Getting started
Start exploring
Quick start
Free personal account
Account settings
Organizations
What is an organization?
Create an organization
Organization settings
Billing
Member management
Spaces
What is a space?
Space customization
Space publishing
Activity and history
Comments and discussion
Collections
What is a collection?
Collection customization
Collection publishing
Editing content
Live edits and real-time collaboration
Change requests
Creating pages, groups and links
Rich content
Rich text
Markdown
Embeds
Custom domains
Choose a subdomain
Configure DNS
Set the custom domain in GitBook
Troubleshooting
Features
Quick find
Notifications
Files
Insights
Import
PDF export
Internationalization
SAML single sign-on
SSO & SAML
SCIM & Directory Sync
OpenAPI
SEO
Keyboard shortcuts
Privacy Policy disclosure
Apps & Integrations
Apps & Integrations platform
Install an integration
Slack
Segment
Git sync
Enabling GitHub Sync
Enabling GitLab Sync
Content Configuration
GitHub Pull-Request Preview
Troubleshooting
Troubleshooting
FAQs
How do I hard refresh my browser?
How do I report bugs?
How do I solve connectivity issues?
How do I contact support?
Policies
Subprocessors
Terms of Service
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
Previous
GitBook Segment event
Next
Enabling GitHub Sync
Last modified
14d ago
Export as PDF
Copy link
Outline
A bi-directional Git integration
GitHub: How it works
GitLab: How it works