> 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="/files/WVfSPMgIbWWq12Hy83TC" media="(prefers-color-scheme: dark)"><img src="/files/e197923bed45a301cbc517e22c2cc0619dfafe17" alt="The Version history icon in GitBook"></picture> セクションヘッダーのボタンをクリックするか、 **アクションメニュー** <picture><source srcset="/files/HXFvPsjDqbaBEhpH0WKJ" media="(prefers-color-scheme: dark)"><img src="/files/fd3eb2aee07f495b1836c7d8e6ac4e9cb930d4e1" alt="The Actions menu icon in GitBook"></picture> セクションまたは変更リクエストのタイトルの横にある **変更履歴**.

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

### 変更を表示

コンテンツの古いバージョンを表示しているときは、古いコンテンツと現在のコンテンツの違いを強調表示するかどうかを選択できます。これは変更リクエストの差分表示に似ています。

これを有効または無効にするには、 **変更を表示** の下部にあるトグルを使用します。 **変更履歴** サイドパネル。

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

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

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

これを行うには、次の方法があります。

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

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

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

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

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

セクションを以前のバージョンにロールバックするには、サイドパネルでそのバージョンにカーソルを合わせ、 **［アクション］ボタン** <picture><source srcset="/files/YjlF3Z9KMYv9aQiFzZKD" media="(prefers-color-scheme: dark)"><img src="/files/3489a3405c2f5c8e7f31c02ff44e42d2e3e8dbf6" 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 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/ja-gitbook-documentation/kontentsuwosuru/version-control.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.
