Staging and commitsGit
git commit
Record staged changes with messages and metadata.
Command
git commit -m ""
Example usage
Create new commits or amend the latest one without altering the message.
git commit -m "<message>"
git commit --amend --no-edit
Related tags
Staging and commitsversion-controlworkflow