# Add a commit

### What is a commit?

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.

![Above is an example of a commit on git. The commit number is c51512f and the green lines represent additions.](https://901491421-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MfnvLlz6jyn3Hr5srxD%2F-MgDqCp6XLbPzJhoMZ_F%2F-MgDwlnRikDhKujao3zC%2Fimage.png?alt=media\&token=4e44ff44-e054-445f-a2dc-852e98f6062d)

### How to commit code?

```bash
git commit -m "feature description"
```





