Ad space (banner)
🌿Git Lessons
Lesson 2 / 59

What Is Git? Understanding Version Control

This lesson covers what Git is and the basic idea behind version control. It's for anyone searching "what is Git" or "version control basics."

Git is a tool for recording and managing the history of changes to your files. It tracks "who changed what, and when," so you can undo mistakes and collaborate with others much more easily. Running git init puts a folder under Git's control.

In Try It, type git init into the terminal below. This creates a hidden folder called .git inside that folder, and history tracking begins from there.

A common early mistake is not appreciating the difference from managing files without a tool like Git — copying files by hand into something like "final_v2.zip," with no reliable way to tell who changed what. Git solves exactly this problem, and it's used as an essential tool on nearly every software team; even for solo projects, having a change history you can review or roll back gives real peace of mind.

Git
Try it (type this into the pseudo terminal)
git init

🧑‍💻 You can type this command into the Git pseudo terminal to try it yourself (this page itself has no interactive terminal).

Ad space (banner)
Ad space (in-article)