In Git
, when we type for example:
$ git commit -m "xyz"
What does -m
mean?
Thanks.
-m
stands for message - i.e., the commit message that everyone will see attached to your commit.
Snippet from git commit --help
-m <msg>, --message=<msg>
Use the given <msg> as the commit message.
For every git command/action, you can type git <command> --help
to get the documentation on it.
This is used to describe your commit, what you've done in this commit.
Your could check the man page by man git-commit
, which will tell you more.
精彩评论