Git Show HEAD
Predict Output Medium
Question
What does this code print?
Code
git show HEAD
# commit a1b2c3d
# Author: Ada
# Add feature
Hint
git show displays a commit details.
Explanation
git show HEAD displays the full details of the latest commit: hash, author, date, message, and the diff of changes. You can also show a specific commit: git show <hash>.
Related Resources
Related Lessons
- Git Log
Learn git log.
Look up unfamiliar terms
A beginner-friendly glossary explains jargon in plain English — variables, functions, DOM, Promise, and more.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.
Build real projects
Apply what you learned by building guided projects with starter code and solutions.