Challenge - 5 Problems
Git Log Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate1:30remaining
Understanding git log --oneline output
What is the output format of the command
git log --oneline?Git
git log --onelineAttempts:
2 left
💡 Hint
Think about what 'oneline' means for the commit display.
✗ Incorrect
The --oneline option condenses each commit to one line showing the short commit hash and the commit message summary.
💻 Command Output
intermediate1:30remaining
Effect of --graph option in git log
What does the
--graph option add to the output of git log?Git
git log --graphAttempts:
2 left
💡 Hint
Think about how git visually shows branching.
✗ Incorrect
The --graph option draws a simple ASCII graph showing the branching and merging structure of commits.
🔀 Workflow
advanced2:00remaining
Combining --oneline and --graph for commit history
Which command correctly shows a compact, graphical commit history with one line per commit?
Attempts:
2 left
💡 Hint
You want both a graph and a short summary per commit.
✗ Incorrect
Combining --oneline and --graph shows a simple graph with each commit on one line.
❓ Troubleshoot
advanced2:00remaining
Why does git log --graph output look misaligned?
You run
git log --oneline --graph but the graph lines appear misaligned or broken in your terminal. What is the most likely cause?Attempts:
2 left
💡 Hint
Think about how the graph is drawn using special characters.
✗ Incorrect
The graph uses special Unicode or ASCII characters that require a compatible terminal font to display properly.
🧠 Conceptual
expert2:30remaining
Understanding the difference between --oneline and --graph
Which statement best describes the difference between
git log --oneline and git log --graph?Attempts:
2 left
💡 Hint
Consider what each option changes in the commit log output.
✗ Incorrect
--oneline condenses each commit to a single line with short hash and message. --graph adds a visual ASCII graph showing branches and merges but does not shorten commit info by itself.