What Git Is and Why
You're working on a group project, and three people are editing the same document. Person A adds a section on Monday. Person B deletes a paragraph on Tuesday, not realizing Person A just wrote it. Person C rewrites the introduction on Wednesday, overwriting changes from both of them. By Friday, nobody knows what actually happened, who changed what, or how to get back to a working version. This is the problem Git solves.
Git is a version control system—software that records every change made to your files and keeps a complete history. Think of it like a detailed log book for your code. Instead of having one messy file that everyone overwrites, Git lets each person make changes on their own, then carefully merges those changes together. Every change gets a timestamp, a description of what changed, and who made it.
Let's walk through a simple example. You're writing a website and commit the HTML file (tell Git to save a version). Git takes a snapshot of that file and stores it. The next day you fix a typo and commit again. Git doesn't throw away the old version—it keeps a snapshot of each one and can show you exactly what changed between version one and version two. A week later you add a new feature. Git now knows all three states of your file and can show you exactly what was different in each step. If the new feature breaks something, you can jump back to any earlier version instantly.
Here's why that matters for teams: when your teammates make changes at the same time, Git can usually merge them automatically, because it's tracking which lines changed, not just replacing the whole file. If two people edit different parts of the code, Git combines both edits. If they edit the same line, Git flags it so you can decide which version to keep.

