Skip to content

What is a diff?

A diff shows exactly what changed in a file. Lines that were added are usually green, and lines that were removed are usually red.

An example

A diff works like tracked changes in a document. After your AI tool edits the home page, the diff shows the one heading it rewrote and the three lines it added.

Where you’ll meet it

Related tools