# 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" %}
Git Sync は、Enterprise のお客様向けに IP の許可リスト設定をサポートしています。GitHub、GitLab、または社内ネットワークが承認済み IP からのトラフィックのみを受け付ける場合は、連携を有効にする前に、以下の送信元 Git Sync IP を許可リストに追加してください。

* `34.136.22.210`
* `34.29.189.57`
* `35.223.181.150`
* `34.72.115.112`
* `136.116.236.109`
  {% endhint %}

{% 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 コーディングアシスタントに提供できます。


---

# 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.
