← All articles

3 min read

What is Git, actually? The non-techie version

Your web agency recommends the version control system Git? We explain in plain language what Git is for and how it benefits your website's code.

Pixel Jens replaces a faulty website component using earlier versions.

What is a version control system?

Have you ever overwritten a file and then realized you actually wanted to keep it, because you made a mistake, for example? Or do you keep several different versions of a file to try out different things?

Then you have surely restored an old version before, and that is exactly what version control systems are for! Imagine you had to make a copy and rename the file every time you changed it so you could find it later. That would be a lot of work! With a version control system, you simply create a new version and restore it later when you need it. Don’t you think that’s cool?

The version control system Git

Git is a kind of “notebook” for computer files. It helps you write down and track changes to these files so you can see at any time what has changed. This is especially useful when many people work on the same files and each wants to make their own changes. With Git you can also save different versions of a project, for example to test new features before they are merged into the main version. Git is a powerful tool with many advantages, but it can be a little difficult to learn.

Anyone who works with files has probably used a version control system of their own without knowing it.

Do you have files with names like these?

  • Concept.doc
  • Concept2.doc
  • Concept-final-version.doc
  • Concept-final-version3.doc
  • Concept-final-version-after-changes.doc
  • Concept-final-this-time-for-real.doc

Then you have unknowingly used manual version control, even if not a very good one.

What are the benefits of Git?

Git offers many benefits, especially for teams working on shared projects. Here are some of the most important ones:

  • Tracking changes: Git lets you record and track every change to files over time. This makes it easy to restore earlier versions of files or to trace exactly what changed in them.
  • Collaboration: Git lets several users work on the same files and track their changes. This makes it easier to work together on projects and to coordinate.
  • Branches: Git lets you create several “branches” within a repository. They can be used to test new features or changes in a separate version of the project before they are merged into the main version.
  • Safety: Git stores all changes in a repository, so no data can be lost, even if technical problems occur.
  • Easy integration: Git can be integrated into many development environments and operational processes without trouble, and offers a wide range of tools and services for collaboration and project management.

How does versioning work (simplified)?

There is a central directory in which all versioned files are stored. This directory usually lives with online service providers such as github.com or bitbucket.org.

This central directory is called a repository.

Each developer gets a local copy of the repository on their computer and can make changes there or add and remove files.

When the developer reaches a state that is ready to be delivered, they push the data from their local copy to the repository.

Other developers are then notified of this change and can pull the changes from the central repository into their local copy, so they have the same state of the code.

Why Git?

  • Git suits large and small projects alike
  • The Linux kernel is developed with Git
  • Many major projects have switched to Git, for example Gnome, Perl and Debian
  • The German e-commerce solution Shopware is managed and developed with Git
  • Most web agencies work with Git
  • Git is quick and easy to set up
  • It is faster than other version control systems