Git Will Finally Make Sense After This (4 Hours)

A 4-hour deep dive into how Git actually works β€” from the building blocks up. No memorization. No "10 commands every developer needs to know." Just understanding. By the end, you'll know exactly how Git stores your work, how branches and references really function, and how to reason about every command you run. πŸš€ This is the first 4 hours of my complete Git & GitHub course on Udemy: πŸ‘‰ https://www.udemy.com/course/git-in-p... ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ πŸŽ“ WHAT YOU'LL LEARN ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ πŸ“¦ Git's three building blocks β€” blobs, trees, and commits ‴︎ The three references β€” HEAD, branches, and tags 🌳 The three-tree model β€” work tree, index, and HEAD πŸ”§ Branching, resetting, and the reflog πŸ“š How to read Git's documentation 🧠 Why understanding beats memorization in the age of AI ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ πŸ‘₯ WHO THIS IS FOR ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ β€’ Self-taught developers who use Git daily but still feel uncertain when something goes wrong β€’ Bootcamp grads and CS students preparing for their first dev job β€’ Engineers who've been faking it on Git for years and want to finally understand it β€’ Anyone tired of pasting commands from Stack Overflow and AI without knowing what they do ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ πŸ“ RESOURCES β€” STARTER FILES ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ All the demo projects, setup scripts, and exercises used throughout this video: πŸ‘‰ https://github.com/KianAttar/git-star... Clone or download the repo to follow along hands-on with every lab. ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ⏱️ CHAPTERS ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0:00:00 🎬 Intro 0:01:15 🎯 How Git Actually Works: A Visual Overview 0:13:06 ⏭️ Skip Notice β€” Set Up or Skip Ahead 0:13:26 βš™οΈ [Setup] Setting Up VS Code 0:18:05 βš™οΈ [Setup] A Better Terminal with Starship 0:19:26 βš™οΈ [Setup] Installing Git and Touring the Docs 0:21:59 βš™οΈ [Setup] GitHub: The Social Media of Software 0:29:57 βš™οΈ [Setup] How to Read Git Documentation 0:39:37 🌱 [Foundations] Let's Initialize a Repository 0:42:01 🌱 [Foundations] Configuring Git with git config 0:50:39 🌱 [Foundations] Don't Memorize Git β€” Understand It 0:53:38 πŸ“¦ [Three Objects] Hashes and Blobs: How Git Stores Content 1:01:13 πŸ“¦ [Three Objects] Let's Hash and Inspect Some Blobs 1:06:39 πŸ“¦ [Three Objects] Trees: How Git Stores Folder Structure 1:12:48 πŸ“¦ [Three Objects] Let's Build and Inspect Some Trees 1:19:45 πŸ“¦ [Three Objects] Commits: How Git Stores History 1:28:04 πŸ“¦ [Three Objects] Let's Make and Inspect Some Commits 1:36:55 ‴︎ [Three References] HEAD: The "You Are Here" Pointer 1:47:36 ‴︎ [Three References] Branches and Tags: Lines of Work and Bookmarks 1:58:12 ‴︎ [Three References] Detached HEAD: Off the Line of Work 2:13:42 🌳 [Three Trees] The Work Tree: Your Scratch Paper 2:23:28 🌳 [Three Trees] The Index Tree: Your Answer Sheet 2:34:40 🌳 [Three Trees] Let's See the Three Trees in Action 2:46:58 🌳 [Three Trees] The --staged Pattern: How Git Commands Switch Focus 2:55:24 🌳 [Three Trees] Quick Recap: The Three Trees 2:57:04 🌳 [Three Trees] Making a Commit: How the Three Trees Update 3:10:19 🌳 [Three Trees] Switching Commits: Putting It All Together 3:19:34 πŸ”§ [Working with Refs] Managing Branches: Create, Rename, Delete 3:31:29 πŸ”§ [Working with Refs] Managing Tags: Lightweight and Annotated 3:42:08 πŸ”§ [Working with Refs] git reset: Moving Where a Branch Points 3:48:42 πŸ”§ [Working with Refs] git reset Modes: --soft, --mixed, --hard 4:00:06 πŸ”§ [Working with Refs] The Reflog: How to Find "Lost" Commits 4:12:18 🎬 Outro ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ πŸš€ WANT TO GO FURTHER? ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ The full course on Udemy covers what's next β€” taught the same way you just experienced: πŸ”€ Merging strategies and conflict resolution ✨ Rebase in depth (and how to undo one) πŸ’ͺ Force-push recovery 🌐 Remotes and team collaboration πŸ™ The full GitHub workflow β€” pull requests, Actions, signed commits, forks, organizations ⚑ Plus a lesson on developer velocity that nobody else teaches πŸ‘‰ https://www.udemy.com/course/git-in-p... ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ πŸ‘‹ ABOUT KIANCODE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ KianCode is about understanding, not memorization. In the age of AI, understanding is the only thing that matters. I'm Kian. Subscribe for more videos like this β€” programming education from the building blocks up. πŸŽ₯ Other deep-dive tutorials on this channel: β€’ Understanding the Internet & Web: HTML, HTTP, URLs & Forms: https://www.udemy.com/course/html-web... ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ #git #gittutorial #versioncontrol #programming #softwaredevelopment #coding #webdev #learngit

Blobs, Trees & Commits: The 3 Objects That Power Git (Finally Explained)
β–ΆοΈŽ

Blobs, Trees & Commits: The 3 Objects That Power Git (Finally Explained)

Zig 2026: No-AI Policy, $670K Foundation, Left GitHub & Why Zig Isn’t 1.0 - Andrew Kelley Explains
β–ΆοΈŽ

Zig 2026: No-AI Policy, $670K Foundation, Left GitHub & Why Zig Isn’t 1.0 - Andrew Kelley Explains

Push Your First Project to GitHub the RIGHT Way β€” What Nobody Tells You
β–ΆοΈŽ

Push Your First Project to GitHub the RIGHT Way β€” What Nobody Tells You

Build a Full-Stack GenAI Project in 4 Hours (FastAPI, React, Supabase)
β–ΆοΈŽ

Build a Full-Stack GenAI Project in 4 Hours (FastAPI, React, Supabase)

Complete GitHub Actions Course - From BEGINNER to PRO
β–ΆοΈŽ

Complete GitHub Actions Course - From BEGINNER to PRO

Using Large Language Models | Build Your Own LLM Workshop #1
β–ΆοΈŽ

Using Large Language Models | Build Your Own LLM Workshop #1

Build and Deploy Claude Skills and MCP Servers | The Complete 2026 Guide
β–ΆοΈŽ

Build and Deploy Claude Skills and MCP Servers | The Complete 2026 Guide

Software architecture, human judgment, and AI's limits with Grady Booch
β–ΆοΈŽ

Software architecture, human judgment, and AI's limits with Grady Booch

How To Think SO CLEARLY People Assume You're A Genius
β–ΆοΈŽ

How To Think SO CLEARLY People Assume You're A Genius

Inside the Mind of Anthropic CEO Dario Amodei | The Circuit | Extended Interview
β–ΆοΈŽ

Inside the Mind of Anthropic CEO Dario Amodei | The Circuit | Extended Interview

Git Tutorial for Beginners: Learn Git in 1 Hour
β–ΆοΈŽ

Git Tutorial for Beginners: Learn Git in 1 Hour

Building a Data Warehouse From Scratch with Jacob Baskin
β–ΆοΈŽ

Building a Data Warehouse From Scratch with Jacob Baskin

Turing Award Winner: Disagreeing with Google, Postgres, Future Problems | Mike Stonebraker
β–ΆοΈŽ

Turing Award Winner: Disagreeing with Google, Postgres, Future Problems | Mike Stonebraker

Keynote: After the AI Hype – What’s Real, and What’s Next - Richard Campbell - 2026
β–ΆοΈŽ

Keynote: After the AI Hype – What’s Real, and What’s Next - Richard Campbell - 2026

Linux 7.2 Review: MAJOR Performance, GPU, CPU, and Networking Upgrades
β–ΆοΈŽ

Linux 7.2 Review: MAJOR Performance, GPU, CPU, and Networking Upgrades

Software engineering at the tipping point
β–ΆοΈŽ

Software engineering at the tipping point

The Big Short (2015): The Jenga Scene – Explaining the Financial Collapse
β–ΆοΈŽ

The Big Short (2015): The Jenga Scene – Explaining the Financial Collapse

Git Tutorial For Dummies
β–ΆοΈŽ

Git Tutorial For Dummies

I Investigated The World's Skinniest vs Fattest City
β–ΆοΈŽ

I Investigated The World's Skinniest vs Fattest City

Don't learn AI Agents without Learning these Fundamentals
β–ΆοΈŽ

Don't learn AI Agents without Learning these Fundamentals