Git in Android Studio - 如何创建带有两条评论的提交
Git in Android Studio - How to create commits with two comments
在命令行上使用 Git 时,我通常会像这样一次提交两条提交消息:
git commit -m"short message" -m"This message is usually a bit more elaborate"
然后将这些解释为一种标题(第一条消息)和实际消息(隐藏在省略号后面)并相应地显示在 GitHub/GitLab 中。
有时我在 Android Studio 上工作,但我找不到在 GUI 的提交对话框中创建第二条消息的选项。这在 IDE 中是不可能的,还是我找不到它?
顺便说一下,我认为我的问题适用于所有 IntelliJ IDE。
给出多个-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 中简单地执行此操作,只需相应地格式化消息即可。
在命令行上使用 Git 时,我通常会像这样一次提交两条提交消息:
git commit -m"short message" -m"This message is usually a bit more elaborate"
然后将这些解释为一种标题(第一条消息)和实际消息(隐藏在省略号后面)并相应地显示在 GitHub/GitLab 中。
有时我在 Android Studio 上工作,但我找不到在 GUI 的提交对话框中创建第二条消息的选项。这在 IDE 中是不可能的,还是我找不到它?
顺便说一下,我认为我的问题适用于所有 IntelliJ IDE。
给出多个-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 中简单地执行此操作,只需相应地格式化消息即可。