Reading · 7 min

Commits and history

You are previewing a free lesson. Enrol to save progress and take quizzes.

A commit is a saved snapshot with a message. Good messages say what changed and why.

Core commands

  • git init starts a repository
  • git add stages changes
  • git commit records them
  • git log shows history