Skip to content
Chapter 01 of 03 · 3 lessons · ~23 min

Git Basics

Understand what Git does, install it and save your first versions with commits.

YOUR PROGRESS0%
/ Lessons in this chapter
01
What Is Git and Why Should You Use It? What Git is, the problem it solves and the few words you need to know before using it. Coming soon
02
How to Install and Set Up Git How to install Git on your computer and set it up correctly in five minutes. Coming soon
03
Git Init, Add and Commit Explained The everyday Git workflow: start a repository, stage changes and commit them with good messages. Coming soon

Chapter practice task

Task: Put a small website project under Git and make five meaningful commits

  1. Install Git and set your name and email.
  2. Create a folder with an index.html and style.css.
  3. Run git init, then commit your starting files.
  4. Make four small changes, committing after each with a clear message.
  5. Run git log --oneline and read your project’s history.

By the end of this chapter

  • You understand repositories, commits and the staging area
  • Git is installed and configured on your computer
  • You can save versions of your work whenever you like

Quick answers for this chapter

How often should I commit?

Whenever you finish a small, working change. Several commits a day is normal.

Does Git store copies of every file?

It stores snapshots efficiently, so even long histories take little space for text files.

Can I use Git for design files?

You can, but large binary files like PSDs bloat repositories. Git shines with code and text.