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
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:
Open Git Sync
In your GitBook space, click Set up Git Sync.
Configure GitHub or GitLab
GitHub
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.
GitLab
In GitLab, select Settings → Access Tokens. Create a personal access token with these scopes:
apiread_repositorywrite_repository
In GitBook, enter the token and click Authenticate.
Last updated
Was this helpful?