AI engineering glossary · Command line Git

What is diff?

Diff (also called git diff): A line-by-line comparison showing what was added and removed between two versions of files. Git can compare the working tree, the staging area, commits or branches, and pull requests display it for review.

Level: beginnerTopic: Command line Git

Diff: an example

git diff shows unstaged changes, with lines starting with + added and - removed.

Related terms

More Command line Git terms

Where you learn it

Diff is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.