Lab of Legends
Lab of Legends
Section titled “Lab of Legends”Welcome to the final boss of Git fundamentals — your hands‑on proving ground.
Every step you take here connects the dots between what you’ve learned and what you can now do.
Git isn’t just a tool anymore — it’s your creative companion.
Let’s put that power to work.
🧭 The Mission: The 10‑Step Git Workout
Section titled “🧭 The Mission: The 10‑Step Git Workout”-
Install & Configure Git
Verify your setup with:Terminal window git --versiongit config --list -
Initialize a Repository
Create a new folder and turn it into a repo:Terminal window git init -
Stage and Commit Files
Terminal window git add .git commit -m "Initial commit — project setup" -
Connect to GitHub
Terminal window git remote add origin https://github.com/your-username/lab-of-legends.gitgit branch -M maingit push -u origin main -
Create a Feature Branch
Terminal window git switch -c feature/add-readme -
Add New Content and Commit
EditREADME.md, then:Terminal window git add README.mdgit commit -m "Add project overview to README" -
Merge Back into Main
Terminal window git switch maingit merge feature/add-readme -
Tag a Release
Terminal window git tag -a v1.0.0 -m "First stable release"git push origin --tags -
Break Something — Then Fix It
Delete a line, save, panic briefly, and then:Terminal window git restore <filename>Congratulations — you just used Git as a safety net.
-
Celebrate and Reflect
Look back at your log:Terminal window git log --oneline --graph --decorateThat history is the story of your learning.
⚙️ Stretch Goals for the Curious
Section titled “⚙️ Stretch Goals for the Curious”- Try a collaboration test — invite a friend as a collaborator on GitHub.
- Create an issue and link it to a commit (
Fixes #1). - Practice branching and merging until it feels like muscle memory.
- Explore
git reflogand recover a “lost” commit just to flex. - Bonus: Write your own
.gitignorefor a real‑world project.
💡 Professor Solo’s Pro Tip:
Repetition builds fluency. Do this lab again next week — it’ll feel twice as fast and make twice as much sense.
✅ Mission Check: Legend Status Unlocked
Section titled “✅ Mission Check: Legend Status Unlocked”You can now:
1. Initialize and configure repos from scratch
2. Stage, commit, and merge like a pro
3. Tag and release with confidence
4. Recover from disaster (you’ve done it before)
5. Collaborate gracefully with others
6. Think like a version‑controlled developer
💡 Professor Solo says:
“You’ve got the tools, the knowledge, and the swagger.
Now go build something worth committing to.”