为什么我们要在 git commit 命令中使用 -m?

why should we use -m in git commit command?

git commit -m "my commit"

我们使用此命令将提交添加到我的 gitHub 回购,我在这里不理解的是这个 -m 是什么意思

-m表示您正在写消息。如果您在没有 -m 的情况下编写消息,它将 return 出错。该消息将在 Github!

的提交部分中找到

做一个git commit --help

-m 用于消息。这将出现在您的提交历史记录中

示例:git commit -m "update to match android ui."