Tech

Git

A time-travel logbook that creates save points right before major boss fights, letting you rewind whenever things go wrong.

  • 2 min read
  • 2 figures
  • Verified 2026-10-12

Definition

Git is a version control system that meticulously tracks changes to files over time. For text-based files like code, it lets you see exactly which lines were added or removed, allowing you to safely roll back your project to any previously saved checkpoint (commit) whenever a mistake occurs.

Rescuing Your Desktop from 'final_final_v2.docx'

Everyone has had a desktop cluttered with files like `report_final.docx`, `report_really_final.docx`, and `report_final_final_EDIT.docx`. We do this out of fear: if we overwrite our work, we might lose something valuable.

Git eliminates this messy habit once and for all. While Word documents are an easy everyday example, Git is primarily built to manage text files like source code. It lets you keep a single clean filename while quietly taking snapshots—or save points (commits)—whenever you tell it to.

These snapshots let you travel back in time at will. Even if you write tons of new code and everything breaks, there is no need to panic. With a single command, you can roll back to yesterday at 3 PM, right where everything worked smoothly.

Creating Parallel Universes with 'Branches'

Git is great for solo projects, but its true power shines when teams collaborate. If multiple people edit the same file simultaneously without Git, they will inevitably overwrite each other's edits and create complete chaos.

Git solves this using branches—parallel universes split off from the main timeline. Developers can branch off from the untouched original codebase, build their assigned features freely, and test them without worrying about breaking anyone else's work.

Once a feature is ready, the branch is brought back into the main trunk (merged). Even if two teammates edit the same line of code differently, Git pinpoints the exact conflict, letting them resolve differences smoothly without stepping on each other's toes.

To Be Precise: Distributed Version Control

To be precise, Git is a 'distributed version control system,' meaning every participant holds a complete copy of the project's history. Unlike older systems that stored everything on a single central server, Git mirrors the entire change history onto every team member's local computer.

Because of this, you can record commits and explore past revisions even offline—whether you are on a flight or without internet in a remote cabin. And if a central server crashes or gets struck by lightning, you can recover nearly the entire project history up to the latest sync point from any teammate's machine.

Git also includes built-in tools to push and pull changes between computers. Online platforms like GitHub simply host these Git repositories in the cloud, making global collaboration seamless.

Common misconceptions

Myth

Git and GitHub are the exact same thing.

Fact

Git is a local tool that tracks and manages file history, while GitHub is a popular cloud service where you host and share Git repositories to collaborate.

Where you meet it

  1. Restoring your source code back to yesterday's working state with a single command after an experimental feature breaks everything.

  2. Allowing multiple developers to build login and checkout features on separate branches, then merging them into one app while Git flags any overlapping lines.

In one sentence

Git is a distributed version control tool that records file changes like save points, letting you jump back in time and collaborate seamlessly.

Created 2026-02-15 Updated 2026-10-12 Verified 2026-10-12