Git Log Oneline
Predict Output Easy
Question
What does this code print?
Code
git log --oneline
# a1b2c3d Add feature
# e4f5g6h Initial commit
Hint
--oneline shows hash and message per line.
Explanation
git log --oneline shows each commit as one line with the abbreviated hash and commit message. This is useful for a quick overview of the history.
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.