Simply put, Commits are saved changes.
Each commit has an associated commit message. A good commit message is a description why a particular change was made or the changes themselves.
Git assigns each commit a unique ID, called a SHA or hash, that identifies:
- The specified changes
- When the changes were made
- Who created the changes
git commit -m "<A descriptive change>"
Commits that are meaningful and make the repo better are wonderful ;)
- Hmm, surely there must be a way to commit to a repo without breaking anything that might be really important.