Import or migrate your content to GitBook with Git Sync
Easily import content from your previous documentation provider — or from GitHub or GitLab — using Git Sync in GitBook
2
3
Last updated
Was this helpful?
Easily import content from your previous documentation provider — or from GitHub or GitLab — using Git Sync in GitBook
One of the best ways to import your content into GitBook is using Git Sync. With Git Sync, you can choose to import a repository from either GitHub or GitLab, to add all your docs to a GitBook site in just a few minutes.
Git Sync allows you to sync multiple spaces and folders of content into one GitBook site.
You can sync a single space of a GitBook site with a Git repository by following these steps:
In your GitBook space, click Set up Git Sync.
Install the GitBook app on GitHub. Grant access to selected repositories or all repositories.
In GitBook, authorize GitBook with GitHub and select the account that contains your content.
In GitLab, select Settings → Access Tokens. Create a personal access token with these scopes:
api
read_repository
write_repository
In GitBook, enter the token and click Authenticate.
Last updated
Was this helpful?