Think of a video game. When you reach a checkpoint the game saves your progress, and if you make a mistake later you reload the last checkpoint and carry on. Git works the same way for your files. Each save point is called a commit.
Git also has three areas, which you can picture as a desk, a box and a shelf. The working folder is your desk, where you edit files. The staging area is a box: you choose what goes into it with git add. The repository is a shelf of sealed, labelled boxes, and git commit seals the box and puts it on the shelf.
