# GitHub & GitLab 同期

<figure><img src="/files/3ad922c8b09e61097e7f27a9e55c5ab7f78c9050" alt="A GitBook screenshot showing the Git Sync setup"><figcaption><p>GitBook スペースに Git Sync を設定します。</p></figcaption></figure>

### 概要

Git Sync を使うと、技術チームは GitHub または GitLab のリポジトリを GitBook と同期し、Markdown ファイルを美しく使いやすいドキュメントに変換できます。GitHub または GitLab 上のコードベースとコンテンツを同期したまま、GitBook の強力なエディターで直接編集できます。

Git Sync は双方向なので、GitBook のエディターで直接行った変更は自動的に同期され、GitHub または GitLab で行われたコミットも同様に同期されます。これにより、開発者は GitHub または GitLab から直接コミットでき、テクニカルライター、インストラクショナルデザイナー、プロダクトマネージャーは GitBook で直接編集、議論、フィードバックを行えます。

{% hint style="info" %}
のみ [管理者と作成者](/docs/documentation/ja-gitbook-documentation/collaboration/member-management/roles.md) が Git Sync を有効化および設定できます。
{% endhint %}

### skill.md

Git Sync を使ってローカルでドキュメントを作成する際は、GitBook の [skill.md ファイル](/docs/documentation/ja-gitbook-documentation/creating-content/ai-coding-assistants-and-skillmd.md) を使って、GitBook のブロック、機能、ベストプラクティスに関するコンテキストを AI コーディングアシスタントに提供できます。&#x20;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://gitbook.com/docs/documentation/ja-gitbook-documentation/getting-started/git-sync.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
