📚 Track & Undo Changes

Essential Git commands every developer needs to know

Git Init

Beginner 8 minutes

Learn how to initialize a new Git repository. This lesson will guide you through creating a new directory, initializing a new Git repository, and configuring your Git identity.

Start Lesson

Git Add

Beginner 8 minutes

Learn how to stage changes for commit using git add. This lesson covers adding individual files, multiple files, and using wildcards to stage changes efficiently.

Start Lesson

Git Commit

Beginner 10 minutes

Learn the basics of staging and committing changes in Git. This lesson will guide you through checking status, adding files, and making your first commit.

Start Lesson

Git Reset

Intermediate 15 minutes

Learn how to undo changes in Git using different reset modes. This lesson covers soft, mixed, and hard resets with practical examples.

Start Lesson

Git Partial Add

Intermediate 15 minutes

Learn how to interactively stage parts of a file. This lesson covers selectively staging parts of files, reviewing changes before staging, and managing complex commits with precision.

Start Lesson

Git Stash

Beginner 15 minutes

Learn how to temporarily save your work using git stash. This essential feature allows you to quickly switch branches or pull changes without committing your current work.

Start Lesson

Git Amend

Intermediate 10 minutes

Learn how to modify the most recent commit using git commit --amend. This lesson covers changing commit messages, adding forgotten files, and understanding when it's safe to amend commits.

Start Lesson

Git Blame

Intermediate 12 minutes

Check who is responsible for a change in your code. Learn how to use git blame to track the origin of lines in your code. This lesson covers basic blame usage, the powerful -C -C -C options for tracking moved code, and advanced blame techniques.

Start Lesson