Skip to content

Instantly share code, notes, and snippets.

@buithehoa
Last active January 20, 2021 10:48
Show Gist options
  • Save buithehoa/49f179183bb14fe3d928 to your computer and use it in GitHub Desktop.
Save buithehoa/49f179183bb14fe3d928 to your computer and use it in GitHub Desktop.
Diff Against the Previous Commit
git show $COMMIT
# OR
git diff HEAD^ HEAD
# OR
git diff --cached <file_name>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment