A commit is associated with a version of code. Typically commits are done every time a new feature is added or an update to an existing one. It is good practice to provide a description of the feature that was added or updated.
How to commit code?
git commit -m "feature description"
Above is an example of a commit on git. The commit number is c51512f and the green lines represent additions.