AI Hints
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.

📚 144 lessons▶ 2:40:57+ of video💻 176 code examples🖼 157 screenshots
The complete Git & GitHub course, free on YouTubeWatch on YouTube ↗

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.

3. Your First Commit

  1. git status6:39
  2. Staging with git add7:43
  3. Your First Commit8:36

5. Reading History

  1. Reading History13:07
  2. The Short Log14:10
  3. What a Commit ID Is15:08

8. Practice: History Detective

  1. Practice: History Detective22:43
  2. Comparing Two Commits23:55

12. Safety Nets

  1. The Safety Net35:11
  2. Ignoring Files36:27
  3. Ignored Too Late37:40

15. Working with Branches

  1. Working on a Branch45:21
  2. Listing and Deleting Branches46:05
  3. Merging47:01

16. Real Merges

  1. A Real Merge48:13
  2. Seeing the Graph49:18
  3. Merge Conflicts50:16

17. Fixing Conflicts

  1. Fixing a Conflict51:15
  2. Calm Merges52:42
  3. Practice: Branches53:34

18. Comparing Branches

  1. Comparing Branches55:02
  2. Practice: An Experiment56:24

20. Pushing to GitHub

  1. Pushing to GitHub1:00:18
  2. Proving It Is You1:01:17
  3. A README1:03:04

21. Clone, Fetch and Pull

  1. Cloning a Repository1:04:04
  2. Fetching Changes1:05:07
  3. Pulling Changes1:06:09

22. Pushing in a Team

  1. When a Push Is Rejected1:07:02
  2. Pushing Branches1:08:48
  3. A Teammate's Branch1:09:50

23. Pulling in a Team

  1. Conflicts When Pulling1:10:46
  2. Pull with Rebase1:11:56

24. Practice: Remotes

  1. Practice: Remote Challenges1:13:17
  2. Practice: Two Computers1:14:39

25. Pull Requests

  1. What a Pull Request Is1:15:42
  2. Opening a Pull Request1:16:47
  3. Code Review1:17:40

26. Merging Pull Requests

  1. Merging a Pull Request1:18:40
  2. After the Merge1:19:41
  3. Issues1:20:38

27. Forks and Open Source

  1. Forks1:21:42
  2. Keeping a Fork Updated1:22:45
  3. Contributing to Open Source1:23:43

28. Team Workflows

  1. GitHub Flow1:24:46
  2. Protecting Main1:25:58
  3. Good Team Habits1:27:07

30. Stashing Work

  1. Stashing Work1:30:20
  2. More About Stash1:31:17
  3. What Rebase Does1:32:39

32. Rewriting and Picking

  1. Cleaning Up Commits1:37:02
  2. More Rebase Commands1:38:33
  3. Cherry-Pick1:39:33

33. Tags, Blame and Bisect

  1. Tags and Releases1:40:27
  2. Who Changed This Line?1:41:50
  3. Finding a Bug with Bisect1:42:53

34. Aliases and Searching

  1. Shortcuts with Aliases1:44:06
  2. Searching History1:45:13
  3. Conventional Commits1:46:32

36. Common Errors

  1. Common Error Messages1:50:59
  2. Would Be Overwritten1:52:21
  3. Big Files1:53:16

37. Old Commands Online

  1. Old Commands You'll See Online1:54:32
  2. master and main1:55:41

39. GitHub Pages and Actions

  1. GitHub Pages1:59:30
  2. GitHub Actions2:00:29
  3. Checks on Pull Requests2:01:30

40. Tools and Hooks

  1. Git in Your Editor2:02:41
  2. Git Hooks2:03:45
  3. Your Git Settings2:05:00

41. Everyday Gotchas

  1. Line Endings2:06:11
  2. Empty Folders2:07:23
  3. Changing Capital Letters2:08:24

48. Interview Questions 2

  1. Interview Questions: Undoing2:27:17
  2. Interview Questions: Teamwork2:28:42

50. Quick-Fire Quiz

  1. Quick-Fire Quiz2:33:31
  2. Quick-Fire Quiz: Round Two2:36:14

51. Cheat Sheet and Next Steps

  1. The Git Cheat Sheet2:38:39
  2. What to Learn Next2:39:55
  3. Course Complete2:40:57