Skip to content
AITermsLab
–points–day streak

What is Git?

Git is free software that tracks every saved change to a project's files, so you can go back to any version and several people can work together safely.

Last updated

In real life

Like unlimited undo for a whole project, with a note on every step saying what changed.

Try it yourself

The demo puts a made-up bakery page under Git. Add opening hours or change the button, commit each change with a message, then roll back to any earlier version. The roll-back is a new commit, so no version is ever lost.

Your working copy (branch: main)

Rosa's Bakery

Order now

Make a change

Everything is committed.

History of the rosas-bakery repository (1 commit)

This lesson
  1. a1f3c9 First version

Branches

A branch is a safe copy to try an idea on.

Git keeps every saved version. Make changes, commit them, then roll back to any earlier version: the roll-back is a new commit, so nothing is lost.

Git vs GitHub

Git is the tool that tracks changes, and it runs on your computer. GitHub is a website that stores Git repositories online so people can share and work on them together.

Full comparison: Git vs GitHub

Common questions

Who made Git?

Linus Torvalds, who also created Linux, wrote Git in 2005 to manage Linux's code. It's free and open source.

Do I need Git if I'm vibe coding?

It helps a lot. If the AI breaks something, Git lets you go back to the last version that worked. Many AI coding tools use Git for you.

Where you will use this

Quick check: Git

Question 1 of 3

What does Git do?

What does Git do?