Git & GitHub Tutorial
Version control for every developer
Master Git and GitHub with 15 free lessons. Init, commit, branch, merge, remote, pull requests, conflicts — the version-control workflow every developer needs.
What you'll learn
- Git init, add, commit
- Branching and merging
- Remote repositories
- GitHub pull requests
- Resolving merge conflicts
Prerequisites
- A terminal / command line
- A GitHub account (free)
Why learn Git & GitHub?
- Every team uses Git — non-negotiable for any dev role
- GitHub portfolio replaces resumes for many recruiters
- Open source contributions unlock career opportunities
- Saves your work — never lose code again
Course Curriculum
15 lessons · ~6 hours · self-paced
- 1
Introduction to Git
The Problem Git Solves
- 2
Installing Git & Setup
Installing Git on Your Machine
- 3
Creating a Repository
Turning a Folder into a Repository
- 4
Staging & Committing
What the Staging Area Is Really For
- 5
Viewing History & Diffs
Why History Is Worth Reading
- 6
Branching
A Branch Is Just a Label
- 7
Merging & Conflicts
Two Kinds of Merge
- 8
Remote Repositories
What a Remote Is
- 9
Introduction to GitHub
What GitHub Adds to Git
- 10
Cloning & Forking
Cloning: Getting a Repository onto Your Machine
- 11
Pull Requests
What a Pull Request Is For
- 12
Git Workflow Strategies
Why a Team Needs Agreed Rules
- 13
Git Stash & Reset
Stash: A Shelf for Work in Progress
- 14
Git Best Practices
Habits That Keep a History Useful
- 15
Final Project: Collaborative Workflow
What You Are Building
From the Blog
Guides and tutorials related to Git & GitHub.
Ready to start?
All 15 lessons are free. No credit card. No sign-up required to read.
Start with lesson 1: Introduction to Git