Git & GitHub Crash Course for Beginners [2026]
Learn Git and GitHub from scratch with clear examples, real workflows, branching, merging, stashing, rebase, pull requests, and more. Perfect for beginners w...
![Git & GitHub Crash Course for Beginners [2026]](https://i.ytimg.com/vi/mAFoROnOfHs/default.jpg)
freeCodeCamp.org
248.0K views โข Dec 4, 2025
![Git & GitHub Crash Course for Beginners [2026]](https://www.ostreamhub.com/image/i.ytimg.com/vi/mAFoROnOfHs/maxresdefault.jpg)
About this video
Learn Git and GitHub from scratch with clear examples, real workflows, branching, merging, stashing, rebase, pull requests, and more. Perfect for beginners who want strong foundations.
๐Resources
๐ Git/GitHub Cheatsheet - https://www.facebook.com/share/p/17sW4f865u/
๐ logicBase Labs YouTube Channel - https://youtube.com/@logicBaseLabs
๐ Sumit Saha Personal Website - https://www.sumitsaha.me
๐ Sumit Saha freeCodeCamp Handbooks - https://www.freecodecamp.org/news/author/sumitsaha
๐ logicBaseLabs LinkedIn Page - https://www.linkedin.com/company/logicbaselabs/
๐ logicBaseLabs X - https://x.com/@logicBaseLabs
๐ logicBaseLabs Facebook - https://facebook.com/@logicBaseLabs
โค๏ธ Support for this channel comes from our friends at Scrimba โ the coding platform that's reinvented interactive learning: https://scrimba.com/freecodecamp
โฑ๏ธ Chapters
- 0:00:00 Introduction to the Course
- 0:01:04 What is Git & Version Control?
- 0:04:01 Git vs. GitHub Explained
- 0:05:41 Git Architecture: Local vs. Remote
- 0:09:37 Installing Git (Windows, Mac, Linux)
- 0:10:41 Terminal Setup & Verifying Installation
- 0:11:57 Creating a Local Project & Files
- 0:14:41 git init: Initializing a Repository
- 0:16:04 Creating a Remote Repository on GitHub
- 0:18:05 git clone: Cloning a Repository
- 0:20:20 git status: Tracking Changes
- 0:21:43 git add: Staging Changes
- 0:23:40 git add Variations (., -A, specific files)
- 0:24:30 git reset: Unstaging Files
- 0:30:22 git commit: Saving Changes Permanently
- 0:32:00 Configuring Git User Name & Email
- 0:34:13 git reset HEAD: Undoing Last Commit
- 0:35:32 git rm: Deleting Files
- 0:37:00 git rm --cached: Stop Tracking Files
- 0:39:50 git log: Viewing Commit History
- 0:40:58 Git Branching Explained
- 0:43:53 git checkout: Switching Branches
- 0:45:50 git merge: Combining Branches
- 0:47:43 Resolving Merge Conflicts
- 0:52:13 Checking Out Previous Commits (Time Travel)
- 0:54:26 git diff: Comparing Commits
- 0:55:50 Understanding Push, Fetch, and Pull
- 0:57:18 git push: Uploading to GitHub
- 0:58:43 git fetch vs. git pull
- 1:00:24 git restore: Discarding Local Changes
- 1:03:16 git stash: Saving Unfinished Work
- 1:09:47 git revert: Undoing Commits Safely
- 1:12:18 git rebase: Cleaning Up History
- 1:16:48 Pull Requests (PR) & Collaboration
- 1:19:57 Conclusion & Cheat Sheet
๐ Thanks to our Champion and Sponsor supporters:
๐พ Drake Milly
๐พ Ulises Moralez
๐พ Goddard Tan
๐พ David MG
๐พ Matthew Springman
๐พ Claudio
๐พ Oscar R.
๐พ jedi-or-sith
๐พ Nattira Maneerat
๐พ Justin Hual
--
Learn to code for free and get a developer job: https://www.freecodecamp.org
Read hundreds of articles on programming: https://freecodecamp.org/news
๐Resources
๐ Git/GitHub Cheatsheet - https://www.facebook.com/share/p/17sW4f865u/
๐ logicBase Labs YouTube Channel - https://youtube.com/@logicBaseLabs
๐ Sumit Saha Personal Website - https://www.sumitsaha.me
๐ Sumit Saha freeCodeCamp Handbooks - https://www.freecodecamp.org/news/author/sumitsaha
๐ logicBaseLabs LinkedIn Page - https://www.linkedin.com/company/logicbaselabs/
๐ logicBaseLabs X - https://x.com/@logicBaseLabs
๐ logicBaseLabs Facebook - https://facebook.com/@logicBaseLabs
โค๏ธ Support for this channel comes from our friends at Scrimba โ the coding platform that's reinvented interactive learning: https://scrimba.com/freecodecamp
โฑ๏ธ Chapters
- 0:00:00 Introduction to the Course
- 0:01:04 What is Git & Version Control?
- 0:04:01 Git vs. GitHub Explained
- 0:05:41 Git Architecture: Local vs. Remote
- 0:09:37 Installing Git (Windows, Mac, Linux)
- 0:10:41 Terminal Setup & Verifying Installation
- 0:11:57 Creating a Local Project & Files
- 0:14:41 git init: Initializing a Repository
- 0:16:04 Creating a Remote Repository on GitHub
- 0:18:05 git clone: Cloning a Repository
- 0:20:20 git status: Tracking Changes
- 0:21:43 git add: Staging Changes
- 0:23:40 git add Variations (., -A, specific files)
- 0:24:30 git reset: Unstaging Files
- 0:30:22 git commit: Saving Changes Permanently
- 0:32:00 Configuring Git User Name & Email
- 0:34:13 git reset HEAD: Undoing Last Commit
- 0:35:32 git rm: Deleting Files
- 0:37:00 git rm --cached: Stop Tracking Files
- 0:39:50 git log: Viewing Commit History
- 0:40:58 Git Branching Explained
- 0:43:53 git checkout: Switching Branches
- 0:45:50 git merge: Combining Branches
- 0:47:43 Resolving Merge Conflicts
- 0:52:13 Checking Out Previous Commits (Time Travel)
- 0:54:26 git diff: Comparing Commits
- 0:55:50 Understanding Push, Fetch, and Pull
- 0:57:18 git push: Uploading to GitHub
- 0:58:43 git fetch vs. git pull
- 1:00:24 git restore: Discarding Local Changes
- 1:03:16 git stash: Saving Unfinished Work
- 1:09:47 git revert: Undoing Commits Safely
- 1:12:18 git rebase: Cleaning Up History
- 1:16:48 Pull Requests (PR) & Collaboration
- 1:19:57 Conclusion & Cheat Sheet
๐ Thanks to our Champion and Sponsor supporters:
๐พ Drake Milly
๐พ Ulises Moralez
๐พ Goddard Tan
๐พ David MG
๐พ Matthew Springman
๐พ Claudio
๐พ Oscar R.
๐พ jedi-or-sith
๐พ Nattira Maneerat
๐พ Justin Hual
--
Learn to code for free and get a developer job: https://www.freecodecamp.org
Read hundreds of articles on programming: https://freecodecamp.org/news
Video Information
Views
248.0K
Likes
8.5K
Duration
01:21:20
Published
Dec 4, 2025
User Reviews
4.7
(49) Related Trending Topics
LIVE TRENDSRelated trending topics. Click any trend to explore more videos.