Command

git commit

In this normal mode creates a commit from the index, updates the current branch (or detached HEAD), and records metadata. Does not upload to a remote; other modes can change selection.

Formal Syntax & Structure

git syntaxgit
git commit -m <message>

Working Example

Example Snippetgit
git commit -m "Add grocery notes"
Git Reference