git commit
Records staged changes as a new commit in the repository history with a descriptive message.
Syntax
git
git commit -m "message"
git commit --amendExample
git
git commit -m "Add user authentication"
git commit -m "Fix: resolve null pointer in login"
# Amend the last commit (before pushing):
git commit --amend -m "Better commit message"