Diff

A view of what changed between two versions of a file.

Think of it as A marked-up page: red lines were removed, green lines were added.

Lines starting with - were removed and lines starting with + were added, so a changed line shows as one of each. Unchanged lines around them give context, and an @@ line says where in the file you are.

Related terms