git diff HEAD~ HEAD

Shows changes between the last and current commit.

This command displays the differences between the previous commit (HEAD~) and the current commit (HEAD).

It helps you see what has changed in your repository between these two points in time.

You can also compare other commits by replacing HEAD~ with a specific commit hash, or use other references like HEAD~2, HEAD^, etc. Additionally, you can add flags such as --stat to see a summary of changes or --name-only to show only filenames.

Sign in to enable bookmarking, reminders, progress-tracking and more...