A commit is a snapshot of the changes in the project. Each commit in Git has a unique ID and includes a message describing the changes made.
Example Code:
# Add changes to the staging area
git add .
# Commit the changes with a message
git commit -m "Initial commit"