JAEN

Git

git diff

SafeShow diff

git diff [--staged]

Shows changes; --staged shows what's staged.

Examples

  • git diff --stagedDiff of staged changes

Syntax

git diff [--staged] [<file>]

Before you run it

Read-only.

Used when you see

Merge conflict
2
Inspect conflict markers and resolve
See the whole flow →

Related commands

The same reference, with no signal at all

Every command on this site, held on your device. The app adds 632 more: 1,510 commands and 120 fix flows, searchable with no connection. Free to install, no ads (some content is a one-time purchase).

Get it free on the App Store