git commit

git commit saves the changes currently staged in Git as a checkpoint with a message.

What you will learn

Minimal workflow

git status; git add index.html; git diff --staged; git commit -m "Update the home page"

Only staged changes are included. A commit message should describe the change so that you and your collaborators can understand the history later.

Common options and mistakes