开发者

Git - What does -m mean [closed]

开发者 https://www.devze.com 2023-03-23 10:58 出处:网络
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time,or an extraordinarily narrow situation that is not generally applic
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 11 years ago. 开发者_JAVA百科

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消