Git Fundamentals
Learn the Git commands you'll use every day at work.
What's Inside
14 items
- 01Free9 mins
What Is Git?
What Git is, how it saves your work, and how it differs from GitHub.
- 028 mins
Set Up Git and Create a Repository
Install and configure Git, then create your first repository.
- 037 mins
The Three Places Your Changes Live
Follow one change through Git's three places into your first commit.
- 04Free8 mins
Inspect Changes Before You Commit
Use status and diff to see your changes before you commit them.
- 059 mins
Make Commits That Explain the Work
Group related changes and write commit messages people can read.
- 0610 mins
Read the Project's History
Read a project's history with log and show, and compare snapshots.
- 0710 mins
Branches Are Pointers
See how branches and HEAD move as you commit and switch branches.
- 0810 mins
Bring Branches Together With Merge
Merge a feature branch into main and clean up when you are done.
- 0910 mins
Resolve a Merge Conflict
Read conflict markers, pick the right result, and finish the merge.
- 1010 mins
Clone a Repository and Understand Remotes
Clone a project and see how your copy relates to the original.
- 1112 mins
What Fetch, Pull, and Push Actually Change
See what fetch, pull, and push actually change on your machine.
- 1213 mins
Follow an Everyday Team Workflow
Work on a feature branch, open a pull request, and handle updates.
- 1310 mins
Pause Work With Stash
Put unfinished work aside with stash, then pick it up again later.
- 1412 mins
Undo Mistakes Without Losing Work
Pick the right fix for an edit, a staged file, or a pushed commit.
What you'll learn
- Understand how Git stores your work as commits
- Inspect your changes before you commit
- Create and merge branches without fear
- Work with remotes using fetch, pull, and push
- Resolve merge conflicts with confidence
- Undo mistakes without losing work
Meet the Author
The people behind this packWhat are Lesson Packs?
Lesson packs are premium, opinionated guides written by the team. Pro members get access to all current and future lesson packs, including other pro benefits.
- Written by the team behind roadmap.sh
- Visual diagrams and real examples
- A clear, opinionated path per roadmap
- Unlocks every current and future pack

