← Back to Games

🕵️ Git Treasure Hunt

Navigate through commit history to find the hidden treasure

Beginner 15-30 minutes Command Line

🎯 Mission Objective

You've discovered an old Git repository that contains a hidden treasure! Your mission is to navigate through the commit history using Git commands to find the commit that contains the secret flag.

What You'll Learn:

  • Understanding Git commit history
  • Using git log to explore commits
  • Navigating to specific commits with git checkout
  • Examining commit contents with git show

📋 Instructions

Step 1
Download the treasure hunt repository:

Download and extract the zip file to get started with the treasure hunt.

Step 2
Initialize the repository: git init

Make the extracted folder a proper Git repository.

Step 3
Explore the commit history: git log --oneline

View all commits in a condensed format to see the repository's history.

Step 4
Investigate suspicious commits: git show <commit-hash>

Look for commits with interesting messages or changes that might contain clues.

Step 5
Navigate to specific commits: git checkout <commit-hash>

Time travel to different points in history to examine the repository state.

Step 6
Find the treasure:

Look for hidden files, secret messages, or special content that contains the flag!

🔧 Essential Commands

git log View complete commit history
git log --oneline Condensed commit history
git show <commit> View commit details and changes
git checkout <commit> Navigate to specific commit
ls -la List all files (including hidden)
cat <filename> Display file contents
⬇️ Download Treasure Hunt

File size: ~500KB | Requirements: Git installed

💡 Pro Tips

🔍

Look for Patterns

Pay attention to commit messages and timestamps - they often contain hints!

📁

Check Hidden Files

Use ls -la to reveal hidden files that might contain the treasure.

🕒

Timeline Matters

The treasure might be hidden in an older commit, not necessarily the latest one.

🎯

Read Everything

Examine file contents carefully - the flag might be embedded within regular text.