Review changes staged for the next commit.
git diff --stagedReview changes staged for the next commit.
git diff --stagedReview changes staged for the next commit.
git diff --staged| Option / clause | Description |
|---|---|
--staged / --cached | Compare staged changes with the index base. |
--stat | Show a summary of changed files. |
--name-only | Print only changed file names. |
-- <path> | Limit the diff to a path. |
Review a command and its target before running it. Commands that alter files, services, accounts, disks, permissions or databases may be difficult to reverse. Test in a safe environment and keep backups.