AI Hints
Home›Git & GitHub Tutorial›What Git Is
Git & GitHub · Lesson 1 of 144

What Git Is

Saving versions of your work.

⏱ 2 min read▶ Video at 0:00🎓 Free
Watch this lesson in the Git & GitHub courseWatch on YouTube ↗Full Git & GitHub course

Git is a tool that saves versions of your files. Every time you reach a good point in your work, you ask Git to take a snapshot. Later, you can look back at any snapshot, compare it with today, or go back to it. It's like an undo button for your whole project, that never forgets.

What Git Is
From the video: What Git Is
  • Git saves versions of your files
  • Each version is a snapshot
  • Go back to any of them, any time

Without Git, and with Git

Without Git, people save copies by hand. Report final. Report final two. Report really final. Soon nobody knows which file is the latest, or what changed between them. With Git, there's just one folder, and Git quietly keeps the full history inside it. Every version, with a note saying what changed, and when.

Without Git

  • report_final.docx
  • report_final_2.docx
  • report_REALLY_final.docx

With Git

  • One folder
  • Full history inside
  • A note for every change

What a snapshot remembers

Each snapshot in Git is called a commit. A commit remembers three things. Exactly what every file looked like at that moment. Who made it. And a short message explaining why. Put all the commits together, and you get the story of your project.

A commitone snapshot
The filesexactly as they were
The authorwho saved it
The messagewhy it changed

Summary

Git saves snapshots of your work, called commits, so you can always look back or go back. Next, Git's famous partner, GitHub.

Key takeaways
  • Git saves versions
  • A version is a commit
  • Look back, or go back
Next up: Git and GitHub — two different things