Skip to main content

Contact

What are you interested in?

Back to Glossary (G)
Glossary · G

Git (Version Control).

Git is a version control system that records every change to the code of a piece of software or a website, with time, author and description. This makes it possible to restore earlier states, trace changes and let several people work on the same project at once.

Illustration of "Git (Version Control)": Terminal with commands zsh — git1$gitcheckout-bneue-preisseite2$gitaddapp/preise/page.tsx3$gitcommit-m"PreisseitemitPaketen"4[neue-preisseite4f2a9c1]1filechanged5$gitpushoriginneue-preisseite67$gitlog--oneline-284f2a9c1PreisseitemitPaketen9945b10cKontaktformularrepariert

Git (Version Control) — Explained in Detail

Without version control you end up with folders named 'website_final_v3_new'. Git replaces that with a complete history: every finished change is saved as a commit, with a short description of what was changed and why. All the commits together form the repository, the complete archive of the project. If something goes wrong, you can jump back to any earlier state.

Branches let you work on a new feature without putting the running version at risk. The main line (often called main) corresponds to the live website; new work happens on separate branches and is merged only after review. Platforms such as GitHub, GitLab or Bitbucket store repositories online, enable code reviews and automatically trigger tests or a deployment with every change. Git itself is the tool; GitHub is one of several places where it is used.

For clients, Git is above all a question of ownership and independence. Whoever owns the repository of their website or app can engage a different agency at any time without starting from scratch. If the code sits only on one developer's computer or in an agency's account, the result is vendor lock-in, which becomes expensive when you want to switch.

Git is also the foundation of modern workflows. A change is implemented on a branch, built automatically and deployed to a staging environment for review. After approval it is merged into the main line and goes live. Every step is documented, and a faulty update can be rolled back with a single command.

Example: a fault after an update

After a change to the contact form on a tradesman's website, enquiries stop arriving. With Git, it is clear within minutes which lines were changed the day before. The change is reverted, the website works again, and the fault is fixed calmly on a separate branch. Without version control you would have had to guess what had changed.

For websites and apps we develop, the code lives in a Git repository to which the client is given access — so the question of who owns the website has a clear answer from day one.

Frequently Asked Questions About Git (Version Control)

Git is the software that manages versions and runs on any computer. GitHub is an online platform on which Git repositories are stored, shared and worked on together. Alternatives to GitHub are GitLab and Bitbucket.

Not for content, because text and images live in the database. For custom themes and plugins, version control makes sense so that code changes can be traced and undone.

Yes. The repository is the source code of your website or app. With access you can engage a different agency or secure the current state at any time. Settle this in the contract before the project starts.

Ready for Your Project?

Apply this knowledge to your website — DLM Digital will help you.