---
title: "プロジェクト履歴の参照 - プロジェクトおよびMQL5ストレージ - MetaEditorのヘルプ"
description: "MQL5 Algo Forgeは、Gitベースのバージョン管理システムです。つまり、追跡対象ファイルに加えられた変更を容易に確認でき、必要に応じて元に戻すことができます。 ファイルまたはフォルダを右クリックし、[Gitログ]（Git... - プロジェクト履歴の参照 - プロジェクトおよびMQL5ストレージ - MetaEditorのヘルプ"
image: "https://www.metatrader5.com/i/logo_metatrader5.png"
url: "https://www.metatrader5.com/ja/metaeditor/help/mql5storage/mql5storage_diff"
---

[MetaEditorのヘルプ](https://www.metatrader5.com/ja/metaeditor/help) → [プロジェクトおよびMQL5ストレージ](https://www.metatrader5.com/ja/metaeditor/help/mql5storage) → プロジェクト履歴の参照

# プロジェクト履歴の表示

MQL5 Algo Forgeは、Gitベースのバージョン管理システムです。つまり、追跡対象ファイルに加えられた変更を容易に確認でき、必要に応じて元に戻すことができます。

ファイルまたはフォルダを右クリックし、[Gitログ]（Git Log）を選択します。コミット履歴ダイアログで、該当するコミットを右クリックすると、利用可能なオプションが表示されます。

![コミットコンテキストメニュー](https://www.metatrader5.com/i/help/metaeditor/en/commit_context_menu.png)

## 作業用コピーと選択されたリビジョン [#](#compare_working)

[コミットのコンテキストメニュー](https://www.metatrader5.com/ja/metaeditor/help/mql5storage/mql5storage_diff#viewing_project_history)で、[作業用コピーと比較]（Compare with Working Copy） を選択して、現在のファイルを特定のリビジョンと比較します。ファイルがそのリビジョンとどのように異なるかを正確に示す [ウィンドウ](https://www.metatrader5.com/ja/metaeditor/help/mql5storage/mql5storage_diff#diff_window) 画面が開きます。

## 現在のリビジョンと以前のリビジョンの比較 [#](#compare_previous)

新たな問題の原因を探る際には、最近の変化を分析する必要があるかもしれません。MetaEditorは、最新のリビジョンと以前のリビジョンとの比較をサポートしています。

最新のコミットを右クリックして [コンテキストメニュー](https://www.metatrader5.com/ja/metaeditor/help/mql5storage/mql5storage_diff#viewing_project_history)を開き、[以前のリビジョンと比較]（Compare with Previous Revision）を選択します。具体的な違いを示す [ウィンドウ](https://www.metatrader5.com/ja/metaeditor/help/mql5storage/mql5storage_diff#diff_window) が開きます。

## リビジョン間の違い [#](#compare_revisions)

任意の2つのリビジョンを比較することで、チェックポイント間の累積的な変更点が明らかになります。これにより、すべての中間コミットをステップ実行することなく、回帰バグを特定し、コードを監査することが可能になります。

[コミット履歴ダイアログ](https://www.metatrader5.com/ja/metaeditor/help/mql5storage/mql5storage_diff#viewing_project_history)で、Ctrlキーを押しながら任意の2つのコミットを選択し、選択範囲を右クリックして[リビジョンの比較]（Compare Revisions）を選択します。正確な違いを示す [ウィンドウ](https://www.metatrader5.com/ja/metaeditor/help/mql5storage/mql5storage_diff#diff_window) が開きます。

## 作業用コピーと最新リビジョン [#](#diff)

変更したファイルをコミットする前に変更内容を確認するには、ファイルを右クリックして[Git差分]（Git Difference）を選択します。ファイルの現在の状態と前回のリビジョンとの差分を示すウィンドウが開きます。

## 変更内容を表示するウィンドウ [#](#diff_window)

[コミットのコンテキストメニュー](https://www.metatrader5.com/ja/metaeditor/help/mql5storage/mql5storage_diff#viewing_project_history)からオプションを選択すると、複数のセクションとコードのハイライトが表示されたウィンドウが開きます。左側には以前の状態が表示され、右側には最新のリビジョンが表示されます。

強調表示されたコード行の色は、変更の種類を示しています。青色のハイライトは追加箇所を示しています。

![青色でハイライトされたコード](https://www.metatrader5.com/i/help/metaeditor/en/blue_code_highlight.png)

緑色のハイライトは変更箇所を示しています。

![緑色でハイライトされたコード](https://www.metatrader5.com/i/help/metaeditor/en/green_code_highlight.png)

赤色のハイライトは削除箇所を示しています。

![赤色でハイライトされたコード](https://www.metatrader5.com/i/help/metaeditor/en/red_code_highlight.png)

カーソルをハイライト表示された行に置くと、下部のセクションに、変更箇所が一行ずつ表示されます。

![ファイル内のコードの変更または差異](https://www.metatrader5.com/i/help/metaeditor/en/mql5storage_diff.png)

## ツールバー [#](#toolbar)

ツールバーには以下のコマンドが用意されています。

- ![差分ファイルを開く](https://www.metatrader5.com/i/help/metaeditor/en/open_icon.png) - 2つのファイルを選択して [比較します](https://www.metatrader5.com/ja/metaeditor/help/mql5storage/mql5storage_diff#compare_files)。
- ![ファイルを更新](https://www.metatrader5.com/i/help/metaeditor/en/refresh_icon.png) - ファイルを更新します。これは、変更点を比較しながらファイルを編集した場合に便利です。
- ![前の差分に移動](https://www.metatrader5.com/i/help/metaeditor/en/arrowup_icon.png) - ファイルの前の変更に移動します。
- ![次の差分に移動](https://www.metatrader5.com/i/help/metaeditor/en/arrowdwon_icon.png) -ファイル内の次の変更に移動します。

### 2つのファイルを比較する [#](#compare_files)

MetaEditorは、コミット間の差異を確認するだけでなく、2つのファイル間の直接比較もサポートしています。

ツールバーから[ ![差分ファイルを開く](https://www.metatrader5.com/i/help/metaeditor/en/open_icon.png) ]をクリックして、[参照]ボタンを使用して比較したい 2 つのファイルを選択し、[OK]をクリックします。

![比較するファイルの選択](https://www.metatrader5.com/i/help/metaeditor/en/mql5storage_diff_files.png)

ファイル間の違いを行ごとに表示する新しい [ウィンドウ](https://www.metatrader5.com/ja/metaeditor/help/mql5storage/mql5storage_diff#diff_window) が開きます。

## In this section

- [ストレージのアクティベート](https://www.metatrader5.com/ja/metaeditor/help/mql5storage/mql5storage_connect)
- [プロジェクトの生成及び稼働](https://www.metatrader5.com/ja/metaeditor/help/mql5storage/projects)
- [ストレージの活用](https://www.metatrader5.com/ja/metaeditor/help/mql5storage/mql5storage_working)
- プロジェクト履歴の参照
- [変更の統合](https://www.metatrader5.com/ja/metaeditor/help/mql5storage/mql5storage_merging)
- [外部サブバージョンクライアント](https://www.metatrader5.com/ja/metaeditor/help/mql5storage/mql5storage_external_client)

```json
{"@context": "https://schema.org", "@type": "BreadcrumbList", "itemListElement": [ {"@type": "ListItem", "position": 1, "item": {"@id": "https://www.metatrader5.com/ja/metaeditor/help", "name": "MetaEditorのヘルプ"}}, {"@type": "ListItem", "position": 2, "item": {"@id": "https://www.metatrader5.com/ja/metaeditor/help/mql5storage", "name": "プロジェクトおよびMQL5ストレージ"}}, {"@type": "ListItem", "position": 3, "item": {"@id": "https://www.metatrader5.com/ja/metaeditor/help/mql5storage/mql5storage_diff", "name": "プロジェクト履歴の参照"}} ]}
{ "@context": "https://schema.org", "@type": "FAQPage", "mainEntity": [{ "@type": "Question", "name": "MetaTrader 5: プロジェクト履歴の参照", "acceptedAnswer": { "@type": "Answer", "text": "MQL5 Algo Forgeは、Gitベースのバージョン管理システムです。つまり、追跡対象ファイルに加えられた変更を容易に確認でき、必要に応じて元に戻すことができます。 ファイルまたはフォルダを右クリックし、[Gitログ]（Git Log）を選択します..." } }] }
```
