Room 01 - Install & Verify Git
INSTALL & VERIFY GIT
Room 01 - Installing Git
- Git is a distributed version control system created by Linus Torvalds in 2005.
- Before you can use Git, you need to make sure it’s installed and working.
📜 Your mission
Your first mission: Confirm Git is installed and discover its secrets.
-
Run:
git --versionVerify that git is installed -
Run:
which gitThis shows you where git in called from. -
Find the password:
- Look inside the “room01” git repository in this room.
- The password is hidden in the commit history.
- Hint: use
git logto reveal it.
Decrypt the next room: next <PASSWORD>
Key Commands
| Command | Purpose |
|---|---|
git --version | Show installed Git version |
which git | Show path to git binary |
git --exec-path | Show Git’s libexec directory |
git help | List common Git commands |
git help -a | List ALL available Git commands |
git help <command> | Show help for specific command |
man git | Manual page for Git |
Installing Git on Different Systems
# macOS (Homebrew)
brew install git
# Ubuntu/Debian
sudo apt-get update && sudo apt-get install git
# Fedora/RHEL
sudo dnf install git
# Arch
sudo pacman -S git
# Alpine (this container)
apk add git
# Windows
# Download from https://git-scm.com/downloads
# Or use: winget install Git.Git
# Verify installation
git --version
How Git Differs From Other VCS
mermaid flowchart TB subgraph Centralized["Centralized VCS - SVN"] S["🖥️ Server"] --> D1["Dev1\n(working copy)"] S --> D2["Dev2\n(working copy)"] S --> D3["Dev3\n(working copy)"] end subgraph Distributed["Distributed VCS - Git"] R["🌐 Remote A"] <--> G1["Dev1\n(full repo)"] R <--> G2["Dev2\n(full repo)"] R <--> G3["Dev3\n(full repo)"] G1 <--> G2 G2 <--> G3 end
Tasks
01. Verify Git Is Installed
The very first thing to check on any machine - is Git actually available?
Hint: git --version
Solution
02. Locate the Git Binary
Find where the git executable lives on this system.
Hint: which git, type git
Solution
03. Explore Git’s Built-in Help
Git ships with built-in documentation. List the most common Git commands.
Hint: git help, git help -a
Solution
04. Find the Git Libexec Directory
Git stores helper programs in a special libexec directory. Find its path.
Hint: git --exec-path
Solution
05. Explore the room01 Repo
This room contains a room01 git repository. Enter it and look around.
Hint: cd room01, ls -la, git status
Solution
06. Read the Commit History
The password is hidden in the commit messages of the room01 repo. Use the log to find it.
Hint: git log, git log --oneline
Solution
07. Show a Specific Commit’s Details
Once you spot an interesting commit, inspect its full details.
Hint: git show <hash>