How to show changes in recent commits?

git log -p

To show changes in recent commits use git log -p. Git log -p by default will also show additional information, like the commit message, author or the date of the commit.

Layer 1
Terminal Example
git log -p
be76365daf92a53296670e9df9621a72a10eef20 (HEAD -> main)
Author: Tom Ato
Date:   Wed May 19 07:36:14 2021 +0200

Revert "Adding file.txt"

This reverts commit 9cfff1809f12ebaf397074194187960c953330a4.

diff --git a/file.txt b/file.txt
deleted file mode 100644
index e69de29..0000000

commit 1037834b09095d004fee793ec385b3b8674aa7ff
Author: Tom Ato
Date:   Tue May 18 21:16:49 2021 +0200

minimize asset size

diff --git a/assets/icon.png b/assets/icon.png
index e69de29..deba01f 100644
--- a/assets/icon.png
+++ b/assets/icon.png
@@ -0,0 +1 @@

See git log to learn more about it.

Last modified on November 30, 2021.

You might also like