Git & CollaborationBeginner
Commit
Pronunciationkuh-MIT
Definition
A saved snapshot of your changes in Git, with a message that explains what changed and why.
Where you hear it
Daily Git work and code reviews.
Examples
Commit your changes with a clear message.
This commit fixes the login bug.
Each commit should do one thing, so the history stays easy to read.
Common mistake
Writing messages like "fix" or "update". Say what changed and why.
Don't confuse with
Commit is often confused with Push; a commit saves changes locally to your repository, while a push sends those committed changes to a remote server.
Say it at work
- In a meeting or chat
I'm going to commit these style fixes now so we can start testing the UI.
- In an email or ticket
Please ensure you commit your progress before switching to the main branch.
Keep exploring
More in Git & Collaboration