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
Related Terms in Git & Version Control
Git
Track Changes in Microsoft Word, but for your entire project, and you control when to save checkpoints
GitHub
Google Drive for code — your files exist locally, but GitHub is where you back them up and share them
Repository (Repo)
A folder with a detailed diary of every change ever made to it
Commit
A save point in a video game — you can always go back to it if things go wrong