All articles

October 27, 2026 · 3 min read

Why use Git, even when you work alone

Git keeps a history of every change to your code and lets you go back. Why it helps even when you work alone, and what to ask of any project.

  • quality
  • basics

Why keep a history of code when you are the only one working on it? Because the day a change breaks everything, you can go back to yesterday's state in moments. This history is called version control, and the most widespread tool for it is Git.

What Git does

Git records the history of a project: every change, who made it, when, and why. Each record, called a commit, is a point you can return to.

The most telling comparison: the edit history of a shared document, but for a whole project, file by file, with a message explaining each change.

The analogy: a ship's logbook

A captain writes every heading, every manoeuvre, every incident in the log. If the ship ends up in the wrong place, the captain rereads the log, spots where the course drifted, and corrects it.

A project without Git is a ship without a log: you know where you are, but no longer how you got there, and you cannot retrace the route.

Why it helps even alone

  • Going back. An experiment goes wrong? You find the last version that worked.
  • Understanding a bug. "It worked last week": you can look for which change broke it.
  • Trying things safely. You can work on a branch, a parallel copy of the project, test an idea, and keep it only if it convinces.
  • Keeping a copy elsewhere. A Git project is usually hosted on an online service: if your computer fails, the work is safe. It is not a complete backup on its own (see backup and replication), but it is a big step.
  • Rereading yourself. In six months, your commit messages explain choices you will have forgotten.

Why it matters even more in a team

With two or more people, Git lets everyone work on their own part without overwriting the others, then merge the changes. It flags it when two people edited the same line, instead of letting one silently erase the other.

It also enables review: a colleague looks at the changes before they enter the main code, which catches mistakes early.

What Git is not

  • Not a tool reserved for big teams. It is useful from the first day of a project.
  • Not a folder for secrets. Passwords and access keys must not be recorded in the history: even if deleted afterwards, they stay readable in older versions (see exposed API keys).
  • Not a backup of your data. Git keeps the code, not the contents of your database.

What to ask of a project

If you hand over or have a product taken over, a few quick checks:

  1. Is the code in a Git repository, and do you own it, with access in your name?
  2. Is the history readable, with messages saying what changed, rather than "update" a hundred times?
  3. Is the main code separate from experiments, with a stable version identified?
  4. Are secrets absent from the history?

A project delivered without history can still be taken over, but it is harder to understand, and the smallest change takes longer and carries more risk.

Key takeaway

Git is your code's logbook: it makes every change reversible and explainable. Even alone, it is the first habit to build, and the first thing to check in a project handed to you.

And for your product?

If you inherit code with no clear history, or where nobody knows what is live anymore, the first job is to put things back in order. It is one of the points we look at in a project takeover. If you want to see where your code stands, let us talk for 30 minutes.