Git Commit Purpose
Multiple Choice Beginner
Question
What does git commit do?
Hint
commit records changes to the repository.
Explanation
git commit creates a snapshot of the staged changes with a descriptive message. Each commit has a unique hash, author, timestamp, and message. Commits are the building blocks of Git history. Use git commit -m "message" for a concise message. Good commit messages describe what and why, not how.
Related Resources
Related Lessons
- Git Commit
Learn git commit.
Look up unfamiliar terms
A beginner-friendly glossary explains jargon in plain English — variables, functions, DOM, Promise, and more.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.
Build real projects
Apply what you learned by building guided projects with starter code and solutions.