# バージョン管理

コンテンツに加えられたすべての変更は、次を使って簡単に監視できます。 **バージョン履歴** サイドパネル

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

スペースのバージョン履歴では、その中のコンテンツを変更したすべての操作の一覧を確認できます。これには以下が含まれます。

* 誰かが [ライブ編集](/docs/documentation/ja-gitbook-documentation/collaboration/live-edits.md) をスペースに対して行ったとき。
* 誰かが [変更リクエスト](/docs/documentation/ja-gitbook-documentation/collaboration/change-requests.md).
* 誰かが [Git 同期](/docs/documentation/ja-gitbook-documentation/getting-started/git-sync.md) 操作を実行したとき。

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

コンテンツの過去のバージョンを表示して、加えられた変更を確認するには、 **バージョン履歴** <picture><source srcset="/files/WVfSPMgIbWWq12Hy83TC" media="(prefers-color-scheme: dark)"><img src="/files/e197923bed45a301cbc517e22c2cc0619dfafe17" alt="The Version history icon in GitBook"></picture> ボタンを [スペースヘッダー](/docs/documentation/ja-gitbook-documentation/rissu/gitbook-ui.md#space-header)でクリックするか、 **アクションメニュー** <picture><source srcset="/files/HXFvPsjDqbaBEhpH0WKJ" media="(prefers-color-scheme: dark)"><img src="/files/fd3eb2aee07f495b1836c7d8e6ac4e9cb930d4e1" alt="The Actions menu icon in GitBook"></picture> スペース名または変更リクエストのタイトルの横にある を開いて、 **バージョン履歴**.

を選択します。リスト内の任意の項目をクリックすると、その変更が行われた時点でコンテンツがどのように見えていたかを確認できます。これは、次を表示する方法と非常によく似ています。 [変更リクエスト](/docs/documentation/ja-gitbook-documentation/collaboration/change-requests.md).

### 変更を表示

コンテンツの古いバージョンを表示しているときに、古いコンテンツと現在のコンテンツの差分を強調表示するよう選択できます。これは、次に似ています。 [変更リクエストでの差分ビュー](/docs/documentation/ja-gitbook-documentation/collaboration/change-requests.md#diff-mode).

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

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

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

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

これを行うには、次のようにします。

{% 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: 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/creating-content/version-control.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.
