Skip to content
Learn Netverks

Lesson

Step 1/5 20% through track

intro

Introduction to Git

Last reviewed May 28, 2026 Content v20260528
Track mode
none
Means
Read / quiz
Reading
~2 min
Level
beginner

This lesson

An orientation to Git—how this site works, what to expect, and how to get the most from lessons and quizzes.

Version control is required for every professional codebase—this track builds habits before framework magic.

Pull requests, CI pipelines, open-source contributions, and local feature branches.

Read the lesson, run the copy-paste commands in your terminal, then verify with the self-check and MCQs.

Start here before HTML, Git depth, or any language track.

Install on your device (macOS, Linux, Windows)

Git is required for version control practice in this track.

macOS

  1. xcode-select --install includes Git, or brew install git.

Linux

  1. sudo apt install -y git or sudo dnf install -y git

Windows

  1. Git for Windows (winget install Git.Git)—use Git Bash or PowerShell.

Verify: git --version

Git is distributed version control: every clone is a full history, and you commit snapshots locally before sharing with remotes like GitHub.

Core vocabulary

  • Repository — project folder tracked by Git.
  • Commit — named snapshot with parent pointer(s).
  • Branch — movable pointer to a line of work.
  • Remote — another copy’s URL (usually origin).

First commands

git init
git status
git add .
git commit -m "Initial commit"

Practice in an empty folder on your machine—see the install section above for Git on macOS, Linux, and Windows.

Self-check

  1. What is stored in a commit besides file contents?
  2. Why is Git distributed?

Interview prep

Why do teams use Git instead of emailing ZIP files of source code?

Git stores a structured history (commits and parents), supports branches and merges, and plugs into review and CI. ZIPs duplicate effort, hide authorship, and do not model parallel work.

What is a commit, in one sentence?

A commit is an immutable snapshot of the repository tree, linked to its parent commit(s), with a message and metadata, identified by a cryptographic hash.

Interview tip Lesson completion confidence

Can you explain this lesson in 30 seconds without reading notes?

Not saved yet.

Check yourself

Multiple choice — immediate feedback.

Discussion

Past discussion is visible to everyone. Only logged-in users can post comments and replies.

Starter discussion topics

  • What part of this lesson needs a second read?
  • What would you try differently in a real project?

Sign up or log in to post comments and sync lesson progress across devices.

No discussion yet. Be the first to ask a question.

Jump