Git Tutorial

Master version control with Git. Learn essential workflows for collaborative development and manage your code with confidence.

Learn Git from scratch: staging, commits, branching, merging, remotes and rebase, then reflog, bisect, GitHub pull requests and Actions.

New to Git? Every developer needs this.

Start with Lesson 1 — Introduction to Version Control. Git is essential for any coding career, and this course makes it easy.

Continue where you left off

Lessons in this course

Frequently asked questions

What is Git and why do I need it?

Git is a version-control system that tracks changes to your code, lets you undo mistakes, and makes it possible to collaborate with others without overwriting each other's work. It is an essential tool for every developer.

What is the difference between Git and GitHub?

Git is the version-control tool that runs on your computer; GitHub is a website that hosts Git repositories online for sharing and collaboration. You use Git locally and push your work to GitHub.

Is Git hard to learn?

The everyday commands — add, commit, push, pull, branch and merge — are quick to learn and cover most of what you'll do. This course teaches them with practical, real-world workflows.

More for this course