Skip to content
BENIBIX Learn

Git

Development🔀 Version ControlGit Basics

The most used tool for saving each change to code. It helps teams share it too.

Think of it like

Think of it like a save key with a good memory. It keeps each save, and you can go back to any.

Example

Jack types git log in his project folder. Git lists every saved change, newest first, back to the very first one.

Why it matters

Nearly every software team uses Git. Knowing it is one of the first skills a new developer needs.

Definition

Git is the most used version control tool in the world. It keeps the full history of a project on your own computer, so it works without the internet. You save changes as commits, try ideas on branches and share work with others. Linus Torvalds wrote it in 2005 to manage the code of Linux. It is free and runs on every common system.

Example code

console
$ git log --oneline
d331bff Add dark style
6dd6d2c Say hello to the world
93eadff Add home page
Three saved changes, each with a short code and a note.

Common mistake

Thinking Git and GitHub are the same. Git is the tool on your computer; GitHub is a website that hosts it.

Key takeaways

  1. 1
    History on your machine. Every copy holds the full past.
  2. 2
    Works offline. No internet needed to save changes.
  3. 3
    Free for all. Open source and on every system.

Compare

Learn it properly