[Go to site: main page, start]

Lesson PackCreated by the roadmap.sh team

Git Fundamentals

Learn the Git commands you'll use every day at work.

14Lessons2.3 hours readCertificate

What's Inside

14 items

  1. 01

    What Is Git?

    What Git is, how it saves your work, and how it differs from GitHub.

    Free9 mins
  2. 02

    Set Up Git and Create a Repository

    Install and configure Git, then create your first repository.

    8 mins
  3. 03

    The Three Places Your Changes Live

    Follow one change through Git's three places into your first commit.

    7 mins
  4. 04

    Inspect Changes Before You Commit

    Use status and diff to see your changes before you commit them.

    Free8 mins
  5. 05

    Make Commits That Explain the Work

    Group related changes and write commit messages people can read.

    9 mins
  6. 06

    Read the Project's History

    Read a project's history with log and show, and compare snapshots.

    10 mins
  7. 07

    Branches Are Pointers

    See how branches and HEAD move as you commit and switch branches.

    10 mins
  8. 08

    Bring Branches Together With Merge

    Merge a feature branch into main and clean up when you are done.

    10 mins
  9. 09

    Resolve a Merge Conflict

    Read conflict markers, pick the right result, and finish the merge.

    10 mins
  10. 10

    Clone a Repository and Understand Remotes

    Clone a project and see how your copy relates to the original.

    10 mins
  11. 11

    What Fetch, Pull, and Push Actually Change

    See what fetch, pull, and push actually change on your machine.

    12 mins
  12. 12

    Follow an Everyday Team Workflow

    Work on a feature branch, open a pull request, and handle updates.

    13 mins
  13. 13

    Pause Work With Stash

    Put unfinished work aside with stash, then pick it up again later.

    10 mins
  14. 14

    Undo Mistakes Without Losing Work

    Pick the right fix for an edit, a staged file, or a pushed commit.

    12 mins
Certificate of completionIncluded

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

Kamran Ahmed

Kamran is the founder of roadmap.sh. He has spent over a decade building products at startups and scale-ups, and created open-source tools used by millions of developers. He loves teaching and simplifying complex topics.

What 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

RoadmapsGuidesFAQsYouTube

roadmap.shby@nilbuild

Community created roadmaps, best practices, projects, articles, resources and journeys to help you choose your path and grow in your career.

© roadmap.sh·Terms·Privacy·

ThewNewStack

The top DevOps resource for Kubernetes, cloud-native computing, and large-scale development and deployment.