0

在命令行上使用 Git 时,我通常一次提交两条提交消息,如下所示:

git commit -m"short message" -m"This message is usually a bit more elaborate"

然后这些被解释为一种标题(第一条消息)和实际消息(隐藏在省略号后面)并相应地显示在 GitHub/GitLab 中。

不过,有时我正在使用 Android Studio,但在 GUI 的提交对话框中找不到用于创建第二条消息的选项。这在 IDE 中是不可能的,还是我无法找到它?

顺便说一句,我认为我的问题适用于所有 IntelliJ IDE。

4

1 回答 1

1

给出多-m条消息,它们只是由两个换行符连接,所以发出

git commit -m"short message" -m"This message is usually a bit more elaborate"

是相同的

git commit -m "short message

This message is usually a bit more elaborate"

您也可以在任何 Git UI 中简单地执行此操作,只需相应地格式化消息。

于 2016-05-23T12:39:29.200 回答