Home›Git & GitHub Tutorial
Free course
Git & GitHub Tutorial
Learn Git and GitHub from absolute zero, one small and easy step at a time. No experience needed. Every command is run for real, so you see exactly what Git prints and why.
Course contents
Every lesson has its own page with the explanation, code you can copy, the real output, screenshots from the video, and a link that jumps straight to that moment in the video.
1. What Git Is
- What Git Is0:00
- Git and GitHub1:20
- Is Git Installed?2:22
2. Your First Repository
3. Your First Commit
- git status6:39
- Staging with git add7:43
- Your First Commit8:36
4. The Three Areas
- The Three Areas9:44
- Why Staging Helps11:07
- Good Commit Messages12:06
5. Reading History
- Reading History13:07
- The Short Log14:10
- What a Commit ID Is15:08
6. Seeing Changes
- Seeing Changes16:11
- Diffing Staged Changes17:19
- Looking Inside a Commit18:19
7. Files In and Out
8. Practice: History Detective
9. Undoing Changes
- Throwing Away Changes25:12
- Unstaging a File26:10
- Fixing the Last Commit27:08
10. Going Back in Time
- Old Versions of a File28:20
- Visiting an Old Commit29:28
- Detached HEAD30:30
11. Undoing Commits
12. Safety Nets
- The Safety Net35:11
- Ignoring Files36:27
- Ignored Too Late37:40
13. Cleaning Up the Folder
14. Branches
- What a Branch Is42:13
- Creating and Switching43:20
- HEAD and Branches44:22
15. Working with Branches
- Working on a Branch45:21
- Listing and Deleting Branches46:05
- Merging47:01
16. Real Merges
- A Real Merge48:13
- Seeing the Graph49:18
- Merge Conflicts50:16
17. Fixing Conflicts
- Fixing a Conflict51:15
- Calm Merges52:42
- Practice: Branches53:34
18. Comparing Branches
19. Meet GitHub
- What GitHub Does57:11
- A Repository on GitHub58:13
- Connecting a Remote59:19
20. Pushing to GitHub
- Pushing to GitHub1:00:18
- Proving It Is You1:01:17
- A README1:03:04
21. Clone, Fetch and Pull
- Cloning a Repository1:04:04
- Fetching Changes1:05:07
- Pulling Changes1:06:09
22. Pushing in a Team
- When a Push Is Rejected1:07:02
- Pushing Branches1:08:48
- A Teammate's Branch1:09:50
23. Pulling in a Team
- Conflicts When Pulling1:10:46
- Pull with Rebase1:11:56
24. Practice: Remotes
- Practice: Remote Challenges1:13:17
- Practice: Two Computers1:14:39
25. Pull Requests
- What a Pull Request Is1:15:42
- Opening a Pull Request1:16:47
- Code Review1:17:40
26. Merging Pull Requests
- Merging a Pull Request1:18:40
- After the Merge1:19:41
- Issues1:20:38
27. Forks and Open Source
- Forks1:21:42
- Keeping a Fork Updated1:22:45
- Contributing to Open Source1:23:43
28. Team Workflows
- GitHub Flow1:24:46
- Protecting Main1:25:58
- Good Team Habits1:27:07
29. A Tour of GitHub
- A Tour of a GitHub Repository1:28:13
- Collaborators and Access1:29:18
30. Stashing Work
- Stashing Work1:30:20
- More About Stash1:31:17
- What Rebase Does1:32:39
31. Rebasing
- Rebasing a Branch1:33:51
- Rebase Conflicts1:34:49
- The Golden Rule of Rebase1:36:00
32. Rewriting and Picking
- Cleaning Up Commits1:37:02
- More Rebase Commands1:38:33
- Cherry-Pick1:39:33
33. Tags, Blame and Bisect
- Tags and Releases1:40:27
- Who Changed This Line?1:41:50
- Finding a Bug with Bisect1:42:53
34. Aliases and Searching
- Shortcuts with Aliases1:44:06
- Searching History1:45:13
- Conventional Commits1:46:32
35. Fixing Real Mistakes
- Committed to the Wrong Branch1:47:42
- Undoing a Merge1:48:51
- Rescuing Detached Commits1:49:52
36. Common Errors
- Common Error Messages1:50:59
- Would Be Overwritten1:52:21
- Big Files1:53:16
37. Old Commands Online
- Old Commands You'll See Online1:54:32
- master and main1:55:41
38. Inside Git
- Inside Git1:56:37
- Following the Pointers1:57:38
- What a Branch Really Is1:58:31
39. GitHub Pages and Actions
- GitHub Pages1:59:30
- GitHub Actions2:00:29
- Checks on Pull Requests2:01:30
40. Tools and Hooks
- Git in Your Editor2:02:41
- Git Hooks2:03:45
- Your Git Settings2:05:00
41. Everyday Gotchas
- Line Endings2:06:11
- Empty Folders2:07:23
- Changing Capital Letters2:08:24
42. Project: Portfolio
- Project: A Portfolio Site2:09:11
- Project: A Projects Page2:10:04
- Project: Version 1.02:10:58
43. Project: Teamwork
44. Project: Rescue Mission
- Project: Rescue Mission2:15:21
- Project: Removing the Secret2:16:26
- Project: Finishing the Rescue2:17:29
45. Project: Open Source
- Project: Finding Something to Fix2:18:43
- Project: Making the Fix2:19:41
- Project: After the Merge2:20:42
46. Project: Hotfix
- Project: An Urgent Fix2:21:43
- Project: Releasing v1.0.12:22:56
- Project: Bringing the Fix Home2:23:32
47. Interview Questions 1
48. Interview Questions 2
49. Interview Questions 3
50. Quick-Fire Quiz
- Quick-Fire Quiz2:33:31
- Quick-Fire Quiz: Round Two2:36:14
51. Cheat Sheet and Next Steps
- The Git Cheat Sheet2:38:39
- What to Learn Next2:39:55
- Course Complete2:40:57