Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save kevinhooke/d65deb6c6f212b70826d34b8d83552ef to your computer and use it in GitHub Desktop.
Save kevinhooke/d65deb6c6f212b70826d34b8d83552ef to your computer and use it in GitHub Desktop.
git: Show diff for staged changes
If you've already staged changes ready to commit but want to view the diff, use:
git diff --cached
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment