Current Answer, Posted On June 22nd 2022

According to a comment by Paul Watson, the ability to git clone GitBook repositories has either been removed or moved to a different URL.

When I logged into gitbook.com, there is an option to "synchronize with Git" using either GitHub or GitLab. As I don't use GitBook much anymore, I cannot investigate how this feature work, but I assume this is currently the 'recommended' approach - connect GitBook over to either GitHub or GitLab, and then git clone the repository from that site.

Original Answer, Last Edited on Jan. 27th 2018

Yes. You can clone the git repository where the GitBook resides on.

To clone the repository onto a local PC, type:

git clone https://git.gitbook.com/YOUR-USER-NAME/YOUR-BOOK-NAME.git

You will be prompted for your username for gitbook, and your password or an access token (i.e, an API Key). If you do not have a password, you may look up your unique access token in Settings -> Applications/Tokens.

You may also clone your git repository onto GitHub, but when you do so, GitHub will also ask for GitBook's username and password/access token so that it can read from Gitbook's git repository and just copy everything over. So you still need to have your username and your password/access token handy.


EDIT: When this answer was first written in January 2016, there was no official link to the git repository, making this an undocumented feature. Since then, the Gitbook team has exposed the URL to the git repository via its UI, as can be seen in this picture.

Answer from Left SE On 10_6_19 on Stack Overflow
🌐
GitBook
gitbook.com › docs › creating-content › content-structure › page
Pages | GitBook Documentation
June 17, 2026 - Use Git Sync — if both sections sync with repositories, copy the files between repositories and add the page titles to the destination's SUMMARY.md. See Git Sync. Set a page cover for each page of your documentation. When you click the Page cover option, GitBook adds a default cover immediately.
🌐
GitBook
docs.gitbook.com › content-creation › import
Migrate to GitBook | GitBook Documentation
June 16, 2023 - You can migrate and unify existing documentation in GitBook using the import tool. You have the option to import single or multiple pages using our built-in import tool — or an entire Git repository using Git Sync.
Top answer
1 of 1
24

Current Answer, Posted On June 22nd 2022

According to a comment by Paul Watson, the ability to git clone GitBook repositories has either been removed or moved to a different URL.

When I logged into gitbook.com, there is an option to "synchronize with Git" using either GitHub or GitLab. As I don't use GitBook much anymore, I cannot investigate how this feature work, but I assume this is currently the 'recommended' approach - connect GitBook over to either GitHub or GitLab, and then git clone the repository from that site.

Original Answer, Last Edited on Jan. 27th 2018

Yes. You can clone the git repository where the GitBook resides on.

To clone the repository onto a local PC, type:

git clone https://git.gitbook.com/YOUR-USER-NAME/YOUR-BOOK-NAME.git

You will be prompted for your username for gitbook, and your password or an access token (i.e, an API Key). If you do not have a password, you may look up your unique access token in Settings -> Applications/Tokens.

You may also clone your git repository onto GitHub, but when you do so, GitHub will also ask for GitBook's username and password/access token so that it can read from Gitbook's git repository and just copy everything over. So you still need to have your username and your password/access token handy.


EDIT: When this answer was first written in January 2016, there was no official link to the git repository, making this an undocumented feature. Since then, the Gitbook team has exposed the URL to the git repository via its UI, as can be seen in this picture.

🌐
GitHub
github.com › GitbookIO › community › discussions › 21
Copy/export/import from space to space (pages, groups) · GitbookIO · Discussion #21
Especially because the import option is limited to 20 (!) pages - how are we supposed to migrate to Gitbook if we have a third-party wiki with 100+ pages? We can split it into multiple 20-page imports, but without a copy of space2space we can't merge the imports.
🌐
GitBook
docs.gitbook.com › help-center › editing-content › managing-your-content › can-i-move-a-page-between-spaces
Can I move a page between spaces? | GitBook Documentation
To move a one or a few pages we recommend selecting the content on the page and copying and pasting it to your new destination.
Author: kataras
🌐
Gitbooks
bmw9t.gitbooks.io › introduction-to-text-analysis › content › conclusion › adapting.html
Adapting This Book · Introduction to Text Analysis: A Coursebook
To make your own remixable copy of the book, you will need to make a copy our GitHub repository and sync your copy with a GitBook of your own. Things you'll need to begin: ... First you will need to make a copy of our GitHub repository for your own account. When logged in and looking at our repository page, you should see these three buttons in the top-left corner of the window:
Find elsewhere
🌐
Gitbook
aurelia-ui-toolkits-1.gitbook.io › gitbooks-living-in-github
Introduction | Gitbooks living in GitHub
April 14, 2018 - Click on the GitBook icon establishes the needed relationship, where your book is stored in GitHub, can be edited by GitBook web editor and will be hosted (as a web site) at GitBook. ... Edit the book source in GitHub (the file README.md which is the only remaining page in the book after the file Chapter 1 was deleted when this book was created) - directly on GitHub, using the browser.
🌐
Gitbook
wemakecc.gitbook.io › gitbook-template-copy-test › chapter-1 › how-to-start-a-new-book
how to start a new book | gitbook-template-copy-test
April 18, 2018 - CopyOn this page · Previousslide · Nextchapter 2 · Last updated 8 years ago · download the template · unzip it · move to your git folder · open github client and add local repo · click on create repo · click on publish your repo · your repo is now published · open the gitbook editor ·
Author: GitbookIO
Author: schacon
🌐
GitBook
docs.gitbook.com › creating-content › content-structure › page
Pages | GitBook Documentation
February 4, 2025 - Pages always live inside a space, allowing you to group related content and create different sections for the topics or areas you’re covering.
🌐
Medium
medium.com › @richdayandnight › simple-tutorial-on-hosting-your-gitbook-documentation-on-github-pages-bonus-with-gitbook-editor-f27f60d5d408
Simple tutorial on hosting your Gitbook documentation on Github pages (bonus: with Gitbook Editor) | by Rich Yap | Medium
June 9, 2020 - Yes, the first version of Gitbook is no longer maintained. The Gitbook team shifted focus to creating a beautiful online editor that allows you to instantly deploy pages using the https://<username>.gitbook.io/<gitbook_name> pattern, which is great! I totally recommend this if you just want to deploy pages and make them available to public similar to sharing a public google doc.
🌐
Stack Overflow
stackoverflow.com › questions › 72244800 › can-we-duplicate-a-drawing-component-in-gitbook
Can we duplicate a `Drawing` component in GitBook? - Stack Overflow
I thought I could just copy a Drawing component and paste it into another page to duplicate it, but I was wrong. When I edited the pasted drawing and returned back to my original one, I was shocked to find out that it had been updated too. So I found out painfully that I didn't make a duplicate drawing afterall, instead I made a "reference" to the original one, which definitely was not what I wanted. So is it possible to duplicate a Drawing in GitBook, instead of drawing from scratch each time?
🌐
GitBook
docs.gitbook.com
GitBook documentation | GitBook Documentation
How do I migrate my docs to GitBook?Give me an overview of GitBook's AI features.What has GitBook shipped in the last month? ... For the complete documentation index, see llms.txt. This page is also available as Markdown.
🌐
Cjvanlissa
cjvanlissa.github.io › gitbook-demo › getgitbook.html
Chapter 3 Get your GitBook | A GitBook Example for Teaching
To get your GitBook, you should follow these steps: ... In the top right of the page, click Fork. This will copy my gitbook-demo repository to your GitHub account.