Repository statusGit
git diff
Compare file changes between commits, branches, or workspace states.
Command
git diff HEAD~1
Example usage
Review staged vs. unstaged modifications before committing.
git diff HEAD~1
git diff --cached
Related tags
Repository statusversion-controlworkflow