Learn Git 2

Move from solo Git to team Git: understand remotes, branches, pull requests, conflicts and worktrees.

What you'll learn in this Git course

The second installment of our complete Git course. In this advanced course you'll learn how to use Git to collaborate on teams of developers. We will focus a lot more on conflicts and how to safely resolve and revert the natural issues that arise when working on large software teams.

Chapter List

1
Fork
Learn how to fork a repository and contribute to open source projects
2
Reflog
Work with the reference log to recover lost commits
3
Merge Conflicts
Understand merge conflicts, how they arise, and how to resolve them
4
Rebase Conflicts
Learn about rebase conflicts and how to safely keep the project history clean
5
Squash
Many teams require developers to squash commits, learn how and why you would do it
6
Stash
You don't always need to use branches to work on multiple things at once, learn how the stash can save time
7
Revert
Git reset is a bit of a blunt tool, learn about git revert and how to safely undo changes
8
Cherry Pick
Use git cherry pick to selectively move changes from one branch to another
9
Bisect
Slogging through git history can be time consuming, learn how git bisect can find bugs fast
10
Worktrees
Learn when git worktrees can be better than regular old branches when it comes to parallel development
11
Tags
Learn how to use git tags properly to version and release your code

Join 6,441 students in the Learn Git 2 course

Read reviews of their learning experiences

easy to follow still local so no working whit teammates but covers pretty well and simulates the workfflow

(5/5)
Alan Orozco profile image

Alan Orozco

Mexico

One of the best course,yet when doing you can break thing and as conventionally try to start over but however , this course has was harder than previous that's why this is most important . Thanks to the Lane and ThePrimeagen for making this interactive course on git.

(5/5)
Aarjeet Joshi profile image

Aarjeet Joshi

Nepal

Learn Git 2 was a great course for strengthening my understanding of Git and version control. It helped me understand Git history, commits, resetting, branching, forking, and managing changes more deeply. I especially appreciated the practical exercises because they helped me understand not just which commands to use, but also what happens behind the scenes. A valuable course for developers who want to become more confident with Git and build better development workflows.

(5/5)
Ramadan Lotfy profile image

Ramadan Lotfy

Egypt, Cairo

This course was super useful at my job, and taught me strategies on how to manage our Git Repo!

(5/5)
Ryan Kardoes profile image

Ryan Kardoes

United States

love it, never understood git like this before

(5/5)
ritzfarhan  profile image

ritzfarhan

Malaysia

I've been using the basic git commands forever, but have always been too afraid to get into the plumbing and investigate features like stashes and worktrees. Moving forward, worktrees are going to be particularly helpful. Thanks for the hard work on a great course.

(5/5)
Jacob Sutherland profile image

Jacob Sutherland

United States

Lots of practice with branching and commits. Sometimes needed Boots for clarification of steps. Hated the complicated features at first, but I eventually understood how to use them well enough to like them. Took the course immediately after its first half, which I think helped for solidifying my confidence.

(5/5)
thomas peters II profile image

thomas peters II

United States

gotta love the primagen

(5/5)
Deka Louis profile image

Deka Louis

Jakarta, Indonesia

Great course. Well-explained and fun.

(5/5)
Тарас Бенько profile image

Тарас Бенько

Ukraine

or view more reviews

Mediocrity doesn't cut it anymore

The only way to become a great developer is to write a lot of code

Avoid tutorial hell

by writing a ton of code

Stay motivated with

a game-like curriculum

Build portfolio projects

to prove your skills

Delve deeper

into foundational concepts

Learn flexibly online

without interrupting your life

For 1% the price of college

to minimize your financial risk

Frequently asked Questions

Got questions? We've got answers

Yes! It's free to create an account and start learning. You'll get all the immersive and interactive features for free for a few chapters. After that, if you still haven't paid for a membership, you'll be in read-only (content only) mode.