Everyone Can Learn Program
中文 Start learning
Core · Git Free to read

Git and GitHub tutorial

Commit, branch, merge, resolve conflicts, push and pull, the way teams work, in a safe practice repository.

6 lessonsabout 6 h Learn first: Linux and the Command Line
Learn it by doing

The interactive course has the same lessons with an editor next to them: run every example, answer the quizzes and solve exercises that are checked the moment you submit. Free to start, no sign-up.

Start the interactive course
1

Save versions

Commit, look at changes and undo mistakes.
1 CommitsHow do you save versions of your work?2 Seeing and undoing changesHow do you see what changed, and undo a mistake?
2

Branches

Work in parallel and bring it together.
3 Branching and mergingHow do you try something without breaking the main version?4 Merge conflictsWhat do you do when two changes collide?
3

Work with a team

Push, pull and keep the repository clean.
5 Remotes: push and pullHow do you share commits with a team?6 .gitignore and pull requestsHow do teams keep a repository clean and safe?