---
title: "Viewing Project History - Projects and MQL5 Algo Forge - MetaEditor Help"
description: "MQL5 Algo Forge is a Git-based version control system. This means changes made to tracked files can be easily reviewed and, if... - Viewing Project History - Projects and MQL5 Algo Forge - MetaEditor Help"
image: "https://www.metatrader5.com/i/logo_metatrader5.png"
url: "https://www.metatrader5.com/en/metaeditor/help/mql5storage/mql5storage_diff"
---

[MetaEditor Help](https://www.metatrader5.com/en/metaeditor/help) → [Projects and MQL5 Algo Forge](https://www.metatrader5.com/en/metaeditor/help/mql5storage) → Viewing Project History

# Viewing Project History

MQL5 Algo Forge is a Git-based version control system. This means changes made to tracked files can be easily reviewed and, if necessary, reversed.

Right-click the file/folder, then select "Git Log". In the commit history dialog, right-click the relevant commit to see available options.

![Commit context menu](https://www.metatrader5.com/i/help/metaeditor/en/commit_context_menu.png)

## Working Copy vs Selected Revision [#](#compare_working)

In the [commit's context menu](https://www.metatrader5.com/en/metaeditor/help/mql5storage/mql5storage_diff#viewing_project_history), selecting "Compare with Working Copy" compares the current file to a specific revision. A [window](https://www.metatrader5.com/en/metaeditor/help/mql5storage/mql5storage_diff#diff_window) showing exactly how the file differs from that revision will open.

## Current Revision vs Previous Revision [#](#compare_previous)

When searching for the causes of a new problem, you may need to conduct an analysis of recent changes. MetaEditor supports comparisons between the latest and previous revisions.

Right-click the newest commit to open its [context menu](https://www.metatrader5.com/en/metaeditor/help/mql5storage/mql5storage_diff#viewing_project_history), then select "Compare with Previous Revision". A [window](https://www.metatrader5.com/en/metaeditor/help/mql5storage/mql5storage_diff#diff_window) showing the specific differences will open.

## One Revision vs Another Revision [#](#compare_revisions)

Comparing two arbitrary revisions shows the accumulated changes between the checkpoints. This enables you to isolate regression bugs and audit your code without stepping through every intermediate commit.

In the [commit history dialog](https://www.metatrader5.com/en/metaeditor/help/mql5storage/mql5storage_diff#viewing_project_history), hold Ctrl and select any two commits, then right-click the selection and choose "Compare Revisions". A [window](https://www.metatrader5.com/en/metaeditor/help/mql5storage/mql5storage_diff#diff_window) showing the exact differences will open.

## Working Copy vs Latest Revision [#](#diff)

To view the changes in a modified file before committing, right-click the file and select "Git Difference". A window showing the differences between the file's current state and its last revision will open.

## Window Showing Changes [#](#diff_window)

A window with several sections and code highlights opens when you select an option from a [commit's context menu](https://www.metatrader5.com/en/metaeditor/help/mql5storage/mql5storage_diff#viewing_project_history). The left section displays the previous state, while the right shows the recent revision.

The color of the highlighted code line shows the type of change. Blue highlights show additions.

![Blue highlighted code](https://www.metatrader5.com/i/help/metaeditor/en/blue_code_highlight.png)

Green highlights show modifications.

![Green highlighted code](https://www.metatrader5.com/i/help/metaeditor/en/green_code_highlight.png)

Red highlights show deletions.

![Red highlighted code](https://www.metatrader5.com/i/help/metaeditor/en/red_code_highlight.png)

Placing the cursor on a highlighted line displays the specific changes, line after line, in the bottom section.

![Code changes or differences in a file](https://www.metatrader5.com/i/help/metaeditor/en/mql5storage_diff.png)

## Toolbar [#](#toolbar)

The following commands are available in the toolbar:

- ![Open files to diff](https://www.metatrader5.com/i/help/metaeditor/en/open_icon.png) – select any two files for [comparison](https://www.metatrader5.com/en/metaeditor/help/mql5storage/mql5storage_diff#compare_files).
- ![Update files](https://www.metatrader5.com/i/help/metaeditor/en/refresh_icon.png) – refresh the files, which is useful if you edited the file while comparing the changes.
- ![Go to previous diff](https://www.metatrader5.com/i/help/metaeditor/en/arrowup_icon.png) – go to the previous change in the file.
- ![Go to next diff](https://www.metatrader5.com/i/help/metaeditor/en/arrowdwon_icon.png) – go to the next change in the file.

### Comparing Two Files [#](#compare_files)

In addition to reviewing differences across commits, MetaEditor supports direct comparison between two files.

Click ![Open files to diff](https://www.metatrader5.com/i/help/metaeditor/en/open_icon.png) from the toolbar, use the "Browse" buttons to select the two files you want to compare and click "OK".

![Choosing files to compare](https://www.metatrader5.com/i/help/metaeditor/en/mql5storage_diff_files.png)

A new [window](https://www.metatrader5.com/en/metaeditor/help/mql5storage/mql5storage_diff#diff_window) showing the line-by-line differences between the files will open.

## In this section

- [Enabling MQL5 Algo Forge](https://www.metatrader5.com/en/metaeditor/help/mql5storage/mql5storage_connect)
- [Working with Projects](https://www.metatrader5.com/en/metaeditor/help/mql5storage/projects)
- [Working with MQL5 Algo Forge](https://www.metatrader5.com/en/metaeditor/help/mql5storage/mql5storage_working)
- Viewing Project History
- [Collaborating and Merging](https://www.metatrader5.com/en/metaeditor/help/mql5storage/mql5storage_merging)
- [Using External Git Client](https://www.metatrader5.com/en/metaeditor/help/mql5storage/mql5storage_external_client)

```json
{"@context": "https://schema.org", "@type": "BreadcrumbList", "itemListElement": [ {"@type": "ListItem", "position": 1, "item": {"@id": "https://www.metatrader5.com/en/metaeditor/help", "name": "MetaEditor Help"}}, {"@type": "ListItem", "position": 2, "item": {"@id": "https://www.metatrader5.com/en/metaeditor/help/mql5storage", "name": "Projects and MQL5 Algo Forge"}}, {"@type": "ListItem", "position": 3, "item": {"@id": "https://www.metatrader5.com/en/metaeditor/help/mql5storage/mql5storage_diff", "name": "Viewing Project History"}} ]}
{ "@context": "https://schema.org", "@type": "FAQPage", "mainEntity": [{ "@type": "Question", "name": "MetaTrader 5: Viewing Project History", "acceptedAnswer": { "@type": "Answer", "text": "MQL5 Algo Forge is a Git-based version control system. This means changes made to tracked files can be easily reviewed and, if necessary, reversed..." } }] }
```
