Text Diff Checker

Optionally sort lines before comparing unordered data.

A diff highlights additions, deletions and unchanged lines. Use it to compare code, logs or text revisions.

~ git diff a b
diff --git a/a b/b
index a30a52a..c200906 100644
--- a/a
+++ b/b
@@ -1,2 +1 @@
-111
222

This example compares a file containing 111 and 222 with a file containing only 222.

  • The first line identifies the Git diff format.
  • The index line contains the Git object hashes.
  • The --- and +++ lines identify the original and updated files.
  • The @@ header identifies the affected line ranges.
  • The remaining lines show the changes.

Learn more

Feedback