git commit -m <message>
Commit staged changes with a message
This command commits changes to the git repository with a specified message.
The -m
(short for --message
) flag is used to specify the message for the commit. The <message>
parameter should be replaced with a descriptive message that summarizes the changes made in the commit.
Specific examples:
git commit -m "Fix bug"