← Back to Mission Control

Reviewing Mission Logs

2 min read

Git Log

Mission Phase 17 • Difficulty: Beginner

Accessing Flight Records

The git log command displays your project's history—every commit, every change, every decision point.

Basic Log

git log

It shows commits in reverse chronological order (newest first).

One-line Format

git log --oneline

Shows a compact view with the hash and message.

Graphical View

git log --graph --oneline --all

Shows branches and merges visually.

Filtering Logs

git log -n 5                    # Last 5 commits
git log --since="2 weeks ago"   # Recent commits
git log --author="Astronaut"    # By author
git log -- navigation.js        # For specific file

Detailed View

git log -p

Shows the diff for each commit.

Custom Formatting

git log --pretty=format:"%h - %an, %ar : %s"

Formats: %h (hash), %an (author), %ar (relative date), %s (subject).

Why Review Logs?

Next: Boarding Vessels

You've mastered viewing history. Next, learn to clone repositories—downloading complete projects from GitHub.