-
Make a commit with a multi line commit message (leaving an empty line after the first line)
-
View that commit in the log
git log -1
-
View the full commit log
git log
If the log fills your whole terminal, press q
to exit
-
View a shortened version of the commit log
git log --oneline
-
Pick a commit hash from the log
-
View the commit log from the chosen commit backward
git log --oneline <commit_hash>
-
How much of the commit hash do you need to specify? Hint, run
git help log
88cf350 renamed for style - seems if we just show these characters, we get a message -
How can you show just the last three commit messages?