juniorGit

What is a commit in Git?

Updated Apr 23, 2026

Short answer

A commit is a snapshot of changes in the repository.

Deep explanation

Each commit has a unique hash and represents a point in history.

Real-world example

Saving progress of a feature.

Common mistakes

  • Poor commit messages.

Follow-up questions

No follow-up questions available yet.

More Git interview questions

View all →