> For the complete documentation index, see [llms.txt](https://gitbook.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gitbook.com/docs/documentation/fr/documentation-as-code/git-sync.md).

# Synchronisation GitHub et GitLab

<figure><img src="/files/eb17a63bac981ba54f3cf8d92f0cb7dedf0191d5" alt="A GitBook screenshot showing the Git Sync setup"><figcaption><p>Configurez Git Sync pour vos docs GitBook.</p></figcaption></figure>

### Vue d’ensemble

Git Sync permet aux équipes techniques de synchroniser des dépôts GitHub ou GitLab avec GitBook et de transformer un dépôt de fichiers Markdown en une documentation belle et conviviale. Modifiez directement dans l’éditeur puissant de GitBook tout en gardant le contenu synchronisé avec votre base de code sur GitHub ou GitLab.

Git Sync est bidirectionnel, donc les modifications que vous apportez directement dans l’éditeur de GitBook sont synchronisées automatiquement, tout comme les commits effectués sur GitHub ou GitLab. Cela permet aux développeurs de valider directement depuis GitHub ou GitLab et aux rédacteurs techniques, concepteurs pédagogiques et chefs de produit de modifier, discuter et commenter les changements directement dans GitBook.

### Configurer Git Sync

<table data-card-size="large" data-view="cards"><thead><tr><th></th><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><h4><i class="fa-github">:github:</i></h4></td><td><h4>Configurer GitHub Sync</h4></td><td>Configurez et autorisez l’intégration GitHub pour GitBook.</td><td><a href="/pages/b3fdaee19fc909e890a2771427ee0bcdc88d05f9">/pages/b3fdaee19fc909e890a2771427ee0bcdc88d05f9</a></td></tr><tr><td><h4><i class="fa-gitlab">:gitlab:</i></h4></td><td><h4>Configurer GitLab Sync</h4></td><td>Configurez et autorisez l’intégration GitLab pour GitBook.</td><td><a href="/pages/dd3a8d4902d1a29b5f39f9b59e80018ba35576e3">/pages/dd3a8d4902d1a29b5f39f9b59e80018ba35576e3</a></td></tr></tbody></table>

{% hint style="info" %}
Git Sync prend en charge la mise sur liste d’autorisation des IP pour les clients Enterprise. Si votre réseau GitHub, GitLab ou interne n’accepte le trafic que depuis des IP approuvées, ajoutez ces IP sortantes de Git Sync à la liste d’autorisation avant d’activer l’intégration :

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

{% hint style="info" %}
Seuls [les administrateurs et les créateurs](/docs/documentation/fr/collaborer/member-management/roles.md) peuvent activer et configurer Git Sync.
{% endhint %}

### Travailler avec des agents IA

Lorsque vous travaillez localement sur vos docs avec Git Sync, vous pouvez utiliser le [fichier skill.md](/docs/documentation/fr/documentation-as-code/ai-coding-assistants-and-skillmd.md) pour fournir à un assistant de codage IA du contexte sur les blocs, les fonctionnalités et les bonnes pratiques de GitBook.

Accédez à [Agent skills](/docs/documentation/fr/documentation-as-code/ai-coding-assistants-and-skillmd.md) pour en savoir plus.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://gitbook.com/docs/documentation/fr/documentation-as-code/git-sync.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
