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.
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.