Git Explained
Lessons
Glossary
About
Source on GitHub
Lessons
12 short lessons, about five minutes each. Take them in order, because each one builds on the last.
0
0
0
0
of 12
completed
1
1
1
1
What is a repository
Why your folders fill up with copies, and how Git stops it.
Repository
Not started
4 min
2
2
2
2
Taking snapshots
How to save your work as snapshots, and why each one needs a clear message.
Commit
History
Not started
5 min
3
3
3
3
Choosing what to save
How to save some changes and leave the rest for later.
Staging area
Stage
Unstage
Not started
5 min
4
4
4
4
Going back in time
How to look at old snapshots and undo mistakes without losing anything.
Discard
Revert
Not started
5 min
5
5
5
5
Sending to origin
How to put your snapshots on GitHub so other people can use them.
Origin
Push
Ahead
Not started
5 min
6
6
6
6
Getting updates
How to bring in other people's work, and why you pull before you push.
Pull
Behind
Not started
6 min
7
7
7
7
Branches
How to try an idea without touching the version everyone uses.
Branch
Main
Switch
Not started
6 min
8
8
8
8
Merging
How to bring a finished idea back into main.
Merge
Not started
5 min
9
9
9
9
When changes collide
What happens when you and a teammate change the same line, and how you decide.
Conflict
Not started
6 min
10
10
10
10
Asking before merging
How to suggest a change and get it checked before it lands on main.
Pull request
Review
Not started
6 min
11
11
11
11
Copying a project
How to add to a project you don't own.
Fork
Clone
Not started
6 min
12
12
12
12
Good habits
How to keep private files out and mark the versions that matter.
Ignore
Tag
Release
Not started
5 min