git commit

Description

Record changes to the repository.

Command
git commit
Examples
Commit with message
git commit -m "Add new feature"
Commit all tracked files
git commit -a -m "Update all tracked files"
Amend previous commit
git commit --amend -m "Updated commit message"
Parameters
Parameter Type Required Description
-m <message> string No Commit message
-a string No Commit all tracked files
--amend string No Amend the previous commit
--no-verify string No Skip pre-commit hooks
Command Info
Category: Committing
Type: Git
Views: 8
Status: Active
Tags
commit save changes