← Back to Mission Control

Reviewing Mission Logs

8 min read

Git Log

Mission Phase 13 • 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

Shows commits in reverse chronological order (newest first).

One-line Format

git log --oneline

Compact view showing hash and message.

Graphical View

git log --graph --oneline --all

Visualizes branches and merges.

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 of 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: Cargo Management

You've mastered viewing history. Next, we'll learn about .gitignore—telling Git which files to never track.