Git Introduction

Git is a distributed version control system β€” it records every change to your code as a timeline you can navigate, branch, and share. It's the single most important tool in professional development.

What Git gives you

  • History β€” every version is saved; you can see what changed, when, and by whom.
  • Undo β€” go back to any past state without losing work.
  • Branching β€” build features in isolation, then merge them.
  • Collaboration β€” many people work on the same project without overwriting each other.

Git vs GitHub

They're often confused: Git is the tool that runs on your machine and tracks changes. GitHub (and GitLab, Bitbucket) are websites that *host* Git repositories for sharing and teamwork. You can use Git entirely offline with no GitHub at all.

Distributed by design

Unlike older systems, every developer has the full history locally. You commit, branch, and view history offline; you only need the network to share (push) or receive (pull) changes.

The everyday workflow

bash
# 1. make changes to files
git add .                 # 2. stage them
git commit -m "message"   # 3. save a snapshot
git push                  # 4. share to the remote
Note: This course goes from the basics (commits, branches) through real team workflows and recovery tools β€” everything you need to use Git confidently at work.
Free preview. Sign in and subscribe to unlock all 809 lessons across 25 courses.
Git Introduction β€” Git & GitHub | Full Stack Learning Simplified