> 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/ja-gitbook-documentation/kontentsuwosuru/version-control.md).

# バージョン管理

変更を追跡し、以前のバージョンに戻すなどができます

を使うと、コンテンツに加えられたすべての変更を確認できます。 **バージョン履歴** サイドパネル。

### バージョン履歴 <a href="#see-the-activity-of-a-specific-draft" id="see-the-activity-of-a-specific-draft"></a>

セクションのバージョン履歴では、その中のコンテンツを変更したすべての操作の一覧を確認できます。これには次のものが含まれます:

* 誰かがそのセクションをライブ編集したとき。
* 誰かが変更リクエストをマージしたとき。
* 誰かが Git Sync 操作を実行したとき。

### コンテンツの履歴バージョンを表示

コンテンツの過去のバージョンと変更内容を確認するには、セクションヘッダーの **バージョン履歴** <picture><source srcset="broken://files/WVfSPMgIbWWq12Hy83TC" media="(prefers-color-scheme: dark)"><img src="https://4217681718-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNkEGS7hzeqa35sMXQZ4X%2Fuploads%2Fgit-blob-9a6193f3753e7ee38b64b758c0e84a1946cd15c1%2F25_01_10_history_icon_light.svg?alt=media" alt="The Version history icon in GitBook"></picture> ボタンをクリックするか、セクションまたは変更リクエストのタイトルの横にある **アクションメニュー** <picture><source srcset="broken://files/HXFvPsjDqbaBEhpH0WKJ" media="(prefers-color-scheme: dark)"><img src="https://4217681718-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNkEGS7hzeqa35sMXQZ4X%2Fuploads%2Fgit-blob-f73bf8251d7a6786ca6595b4593501e11512d107%2F25_02_04_actions_horizontal_1.svg?alt=media" alt="The Actions menu icon in GitBook"></picture> を開いて、 **バージョン履歴**.

リスト内の任意の項目をクリックすると、その変更が行われた時点でコンテンツがどのように見えていたかを確認できます。これは、変更リクエストの表示方法と非常によく似ています。

### 変更を表示

古いコンテンツを表示しているときは、古いコンテンツと現在のコンテンツの差分をハイライト表示するように選べます。変更リクエストの差分ビューと同様です。

この機能の有効・無効を切り替えるには、 **変更を表示** トグルを **バージョン履歴** サイドパネルの下部で操作します。

変更を表示を有効にすると、変更されたコンテンツはそのコンテンツブロックの左側にあるアイコンで強調表示されます。

### 公開済みの履歴バージョンを表示する

公開済みセクションのバージョン履歴を調べている場合、公開時のコンテキストで以前のバージョンがどのように表示されていたか（つまり、エンドユーザーに見える内容）もプレビューできます。

これは次の方法で行えます:

{% stepper %}
{% step %}
バージョン履歴のサイドパネルから、リビジョンを選択します
{% endstep %}

{% step %}
URL の末尾にある ID をコピーします
{% endstep %}

{% step %}
公開済みドキュメントのURLの末尾に次を追加します。 `/~/revisions/<id>`
{% endstep %}
{% endstepper %}

### 以前のバージョンにロールバックする

ロールバックすると、セクションのコンテンツを以前の時点の状態に戻せます。これは、誤って破壊的な変更を加えてしまったり、コンテンツを削除してしまったりした場合に、すばやく以前のセクションのバージョンに戻すのに役立ちます。

セクションを以前のバージョンに戻すには、サイドパネルで対象のバージョンにカーソルを合わせ、 **操作ボタン** <picture><source srcset="broken://files/YjlF3Z9KMYv9aQiFzZKD" media="(prefers-color-scheme: dark)"><img src="https://4217681718-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNkEGS7hzeqa35sMXQZ4X%2Fuploads%2Fgit-blob-aabbca522107ef561981bdfe5af94605b31e0920%2F25_01_10_actions_icon_light.svg?alt=media" alt="The Actions menu icon in GitBook"></picture> をクリックして、 **ロールバック**.


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://gitbook.com/docs/documentation/ja-gitbook-documentation/kontentsuwosuru/version-control.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
