explaingit

m2station/m2_git_diff

Analysis updated 2026-05-18

30JavaScriptAudience · developerComplexity · 2/5Setup · easy

TLDR

A desktop app that shows two local Git repositories' commit histories side by side to spot differences and copied changes.

Mindmap

mindmap
  root((repo))
    What it does
      Compares two git repos
      Color codes matching commits
      Detects cherry picks
    Tech stack
      Electron
      React
      JavaScript
    Use cases
      Track a personal branch vs main
      Verify a cherry pick did not drift
      Export comparison to Excel
    Audience
      Developers
    Features
      Fuzzy content matching
      Manual commit linking
      In app repo browser

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Compare the commit history of a personal fork against the main project side by side

USE CASE 2

Check whether a cherry picked commit's code drifted from the original after copying

USE CASE 3

Export a color coded comparison of two repos' commits to an Excel file for review

What is it built with?

ElectronReactJavaScriptNode.js

How does it compare?

m2station/m2_git_diffkappaemme-git/mengtofrontendrosalina7515/ui-modernizer
Stars303030
LanguageJavaScriptJavaScriptJavaScript
Setup difficultyeasyeasyeasy
Complexity2/51/52/5
Audiencedevelopervibe codervibe coder

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min
License terms are not stated in the excerpt provided.

In plain English

M2_GIT_DIFF is a desktop application that shows the commit histories of two local Git repositories side by side, making it easier to spot what is different between them. Git is the version control system that tracks changes to code over time, and a commit is a saved snapshot of those changes. This tool is aimed at developers who maintain two related codebases, like a personal branch and the main project, and want to compare which changes exist in each. The two repositories are displayed in parallel columns. Commits that have the exact same identifier on both sides get a grey background. Commits that exist on only one side get a red background. When a commit appears on both sides but with a different identifier, for example because it was copied across with minor edits, the tool highlights it in yellow and draws a horizontal connecting line between the two rows so you can see the relationship. There is also an optional fuzzy matching mode that compares the actual lines of code changed in each commit and flags near-identical changes in pink, even if the titles and identifiers are completely different. You can click a connection line to open a side-by-side diff view that shows the changed lines from both commits in the same window, with a similarity percentage per file. This helps answer whether a commit that was copied across stayed the same or drifted apart over time. The app also supports manual linking, notes on individual commits, forced color overrides via right-click, and per-commit virtual tags for labeling releases. Other practical features include a branch switcher that runs directly from inside the app, an in-app folder browser for opening repositories without using the operating system file dialog, a search bar that filters by title, author, date, or commit identifier, and an export to a formatted Excel file that preserves colors and notes. The command line supports opening both repositories automatically at launch by passing their paths as arguments. The full README is longer than what was shown.

Copy-paste prompts

Prompt 1
Help me set up M2_GIT_DIFF to compare my local fork against the upstream main branch.
Prompt 2
Explain what the yellow versus pink highlighting means when comparing two commits in M2_GIT_DIFF.
Prompt 3
Show me how to launch M2_GIT_DIFF from the command line with two repo paths preloaded using -L and -R.
Prompt 4
Walk me through exporting my repo comparison in M2_GIT_DIFF to a styled Excel file.

Frequently asked questions

What is m2_git_diff?

A desktop app that shows two local Git repositories' commit histories side by side to spot differences and copied changes.

What language is m2_git_diff written in?

Mainly JavaScript. The stack also includes Electron, React, JavaScript.

What license does m2_git_diff use?

License terms are not stated in the excerpt provided.

How hard is m2_git_diff to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is m2_git_diff for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.