---
title: "BookStack git sync of pages as Markdown · Hypamoon"
description: "Each change to a BookStack page is saved as a Markdown file in your own Git repository, in folders per book and chapter, with the name of the editor."
url: https://hypamoon.com/connect-to/bookstack/git-sync
---

1.  [Connect to](https://hypamoon.com/connect-to)
2.  [Work and projects](https://hypamoon.com/connect-to/work)
3.  [BookStack](https://hypamoon.com/connect-to/bookstack)
4.  Git sync

# BookStack git sync of pages as Markdown: Keep a history of your wiki next to your code.

Each change to a BookStack page is saved as a Markdown file in your own Git repository, in folders per book and chapter, with the name of the editor.

[Build this in ChatGPT](https://hypamoon.com/connect?chat=chatgpt&via=connect-to-chatgpt~bookstack/git-sync&say=each%20BookStack%20page%20change%20saved%20as%20a%20Markdown%20file%20in%20my%20Git%20repository%2C%20in%20folders%20per%20book%20and%20chapter.) [Build this in Claude](https://hypamoon.com/connect?chat=claude&via=connect-to-claude~bookstack/git-sync&say=each%20BookStack%20page%20change%20saved%20as%20a%20Markdown%20file%20in%20my%20Git%20repository%2C%20in%20folders%20per%20book%20and%20chapter.)

No account needed to try. See what you will ask your chat

Example

Each BookStack page change saved as a Markdown file in my Git repository, in folders per book and chapter.

Commits today

-   Update Database failover, by Editor A runbooks/databases
-   Add Rotate certificates runbooks/web
-   Move Old VPN steps to Archive archive

Example data

-   When a page in the books you choose is created, updated, moved or deleted, the change goes to your Git repository as a Markdown file, in a folder per book and chapter.
-   The commit message has the page name and the editor.
-   A first run puts the current pages in place, and a weekly check fixes anything that was skipped.

From your BookStack account As a message

## Paste this in your chat

Your chat builds it and runs it every time, on your own BookStack data. No account needed to try.

The sentence

> With Hypamoon, each time a page changes in the BookStack books I choose, save it as a Markdown file in my Git repository, in a folder per book and chapter, with a commit message that names the page and the editor. Start with the current pages, and check once a week that the repository matches BookStack.

[Build this in ChatGPT](https://hypamoon.com/connect?chat=chatgpt&via=connect-to-chatgpt~bookstack/git-sync&say=each%20BookStack%20page%20change%20saved%20as%20a%20Markdown%20file%20in%20my%20Git%20repository%2C%20in%20folders%20per%20book%20and%20chapter.) [Build this in Claude](https://hypamoon.com/connect?chat=claude&via=connect-to-claude~bookstack/git-sync&say=each%20BookStack%20page%20change%20saved%20as%20a%20Markdown%20file%20in%20my%20Git%20repository%2C%20in%20folders%20per%20book%20and%20chapter.)

Hypamoon not in your chat yet? The button adds it first, without an account, and then opens your chat with this sentence.

## How it goes today

1.  Export BookStack books as Markdown by hand and commit them to the repository.
2.  Run a community sync tool between BookStack and a Markdown folder on a laptop.
3.  Copy changed BookStack pages into the repository when someone remembers.

## How it can go

When a page in the books you choose is created, updated, moved or deleted, the change goes to your Git repository as a Markdown file, in a folder per book and chapter. The commit message has the page name and the editor. A first run puts the current pages in place, and a weekly check fixes anything that was skipped.

## What you need

**What BookStack shares**\
BookStack keeps revisions of each page in its own database. People search for a BookStack git sync and git integration, an issue asks for Git as content storage, and open source tools on GitHub sync BookStack with a Markdown vault.

**Access**\
You paste your BookStack key in the portal, never in the chat.

**Your key**\
You create an API token yourself under API Tokens in your own BookStack profile, with a name and an expiry date, once your role has the Access System API permission. The token sees what your user sees. The audit log and the user list need a user who can manage users and settings. Your BookStack server must be reachable over HTTPS. It stays yours.

## More for teams on BookStack

-   [**Our procedures were written years ago and nobody knows which pages are still right.**](https://hypamoon.com/connect-to/bookstack/review-reminders)
-   [**New pages go straight into the handbook before anyone has read them.**](https://hypamoon.com/connect-to/bookstack/approval-workflow)
-   [**If our wiki server goes down I want yesterday's pages somewhere else, without logging in to the server.**](https://hypamoon.com/connect-to/bookstack/auto-backup)
-   [**IT changes a procedure in the wiki and the service desk finds out a week later.**](https://hypamoon.com/connect-to/bookstack/teams-updates)
-   [**Our auditor wants the procedures as Word files and we copy them page by page.**](https://hypamoon.com/connect-to/bookstack/word-export)
-   [**We have two hundred Word procedures on a drive and nobody wants to paste them into the wiki.**](https://hypamoon.com/connect-to/bookstack/word-import)
-   [**Our docs live in a folder of Markdown files and I want them in BookStack with the same structure.**](https://hypamoon.com/connect-to/bookstack/markdown-import)
-   [**Customers get our manual as a PDF and it has no cover, no logo and no page numbers.**](https://hypamoon.com/connect-to/bookstack/pdf-template)
-   [**People ask me in chat for things that are in the wiki, because they cannot find the page.**](https://hypamoon.com/connect-to/bookstack/chatbot)
-   [**A supplier needs our delivery instructions and I do not want to make them a wiki account.**](https://hypamoon.com/connect-to/bookstack/share-page)
-   [**Customers should see the how-to pages, and our wiki server should stay inside the office network.**](https://hypamoon.com/connect-to/bookstack/help-site)
-   [**I want to know what changed in the wiki this week without an email for each edit.**](https://hypamoon.com/connect-to/bookstack/weekly-digest)
-   [**Half our warehouse team reads Polish and the handbook is only in English.**](https://hypamoon.com/connect-to/bookstack/translation)
-   [**For our ISO audit I need to show who changed permissions and deleted pages in the wiki.**](https://hypamoon.com/connect-to/bookstack/audit-log-export)
-   [**I want to see each month which teams keep their part of the wiki up to date.**](https://hypamoon.com/connect-to/bookstack/statistics)
-   [**After each change to our safety rules I need proof that every operator has read them.**](https://hypamoon.com/connect-to/bookstack/read-confirmation)
-   [**We have Status, status and State as tags and search finds half the pages.**](https://hypamoon.com/connect-to/bookstack/tag-cleanup)
-   [**Our incident reports end up in five different layouts because everyone starts from a blank page.**](https://hypamoon.com/connect-to/bookstack/page-from-form)
-   [**We are leaving Confluence and have three thousand pages to move into BookStack.**](https://hypamoon.com/connect-to/bookstack/confluence-migration)
-   [**Former employees and old contractors still have an account on our wiki.**](https://hypamoon.com/connect-to/bookstack/user-review)
-   [**Everything for BookStack**](https://hypamoon.com/connect-to/bookstack)
