Git & Version Control

Diff

What It Is

The difference between two versions of a file

Analogy

A "track changes" view showing exactly what was added, removed, or modified

Try It Out

Git Diff View

Click lines to highlight
-const greeting = "Hello";
+const greeting = "Hello, World!";
 console.log(greeting);
+// Added new feature