Suit Up - Installing & Configuring Git
Suit Up: Installing & Configuring Git
Section titled “Suit Up: Installing & Configuring Git”Before we can travel through time, we need our gear — and in our world, that gear is Git.
Git is the engine that powers version control.
It’s not fancy, but it’s unstoppable — a command-line superhero that quietly tracks every twist and turn of your code’s story.
🧰 Step 1: Installing Git
Section titled “🧰 Step 1: Installing Git”Git runs just about everywhere — and installation is usually painless.
| System | Command or Link |
|---|---|
| Windows | gitforwindows.org — includes Git Bash, a lightweight terminal for running Git commands |
| macOS | brew install git or download from git-scm.com/download/mac |
| Linux | sudo apt install git (Debian/Ubuntu) or your distro’s package manager |
After installing, open your terminal (or Git Bash on Windows) and test it:
git --versionIf you get a version number, you’re good to go.
If you get an error, check your PATH — Git needs to be accessible globally.
🧠 Note: What “Installing Git” Really Means
Section titled “🧠 Note: What “Installing Git” Really Means”Installing Git doesn’t just give us one program — it adds a command-line tool and a background system that remembers changes to files and folders.
When we type commands like git init or git status, we’re really just telling that system:
“Hey Git, track what’s happening in this folder.”
That invisible magic happens through a hidden directory called .git.
(You won’t see it unless you ask Git to show it — but it’s always watching. 👀)
🪟 Optional: GitHub Desktop
Section titled “🪟 Optional: GitHub Desktop”If the command line feels intimidating at first, GitHub Desktop is your friendly training wheels.
- Download GitHub Desktop
- Works on both Mac and Windows
- Includes Git automatically
💡 Professor Solo’s Take:
GitHub Desktop is great for visualizing your work and getting started quickly.
But… we’ll still learn to use the CLI (Command Line Interface) because it’s faster, more precise, and doesn’t change every time the UI does.
If you can drive Git from the command line, you can use any Git tool in the world.
⚙️ Step 2: Configure Git (Identity & Defaults)
Section titled “⚙️ Step 2: Configure Git (Identity & Defaults)”The first time we install Git, it knows nothing about us.
Before we start committing, we need to introduce ourselves — politely, like good developers.
git config --global user.name "Your Name"git config --global user.email "you@example.com"🧠 What’s Happening Here:
user.nameanduser.emailbecome your signature.- Every commit includes this info, so GitHub and teammates know who did what.
🪩 Customize Your Experience
Section titled “🪩 Customize Your Experience”We can also tweak how Git behaves:
git config --global color.ui autogit config --global init.defaultBranch maincolor.ui autogives you pretty color-coded outputinit.defaultBranch mainmakes “main” the default branch instead of “master” (modern convention)
💡 Professor Solo’s Pro Tip
Section titled “💡 Professor Solo’s Pro Tip”Let’s make Git friendlier with some aliases — little shortcuts for the commands we’ll use most:
git config --global alias.st statusgit config --global alias.ci commitgit config --global alias.co checkoutgit config --global alias.br branchgit config --global alias.lg "log --oneline --graph --decorate --all"Now we can type things like:
git st # instead of git statusgit lg # visual log of historyThat’s not cheating — that’s efficient rebellion.
🧩 Step 3: Verify Your Configuration
Section titled “🧩 Step 3: Verify Your Configuration”git config --listThis command lists all your active settings — everything Git knows about you and how it’s configured.
If something looks off, edit or remove entries with:
git config --global --editIt’ll open your config file in your default text editor.
⚠️ Caution: Global vs Local Configs
Section titled “⚠️ Caution: Global vs Local Configs”When we use --global, we’re changing Git’s settings for every project on the computer.
If we just want different settings for one project (say, a school account vs personal account):
git config --local user.email "school@example.edu"Git reads settings in this order:
- Local (project-specific)
- Global (user-wide)
- System (machine-wide)
So local overrides global.
✅ Mission Check: Our First Commit-Ready Setup
Section titled “✅ Mission Check: Our First Commit-Ready Setup”When this page’s steps are complete, we should be able to:
- Open a terminal
- Type
git --versionand get a response - Type
git config --listand see our name, email, and color settings - Feel a tiny spark of power knowing we’ve just joined the league of version-controlled developers
💡 Professor Solo says:
“A developer without Git is like a wizard without a wand.
Time to suit up.”