GitHub桌面的摘要和描述有什么区别?

时间:2016-04-02 05:33:40

标签: github git-commit github-for-mac

虽然我发现它不是很烦人或类似的东西,但我只是想知道在使用summary时如何指定descriptioncommit不同GitHub上的桌面版?如何使用git commit在终端上提供这两个?

1 个答案:

答案 0 :(得分:9)

摘要是提交消息的第一行:它总结了提交的原因(为什么,不是什么)
请参阅“The Art of the Commit

其余部分进入描述。

enter image description here

按照惯例,第一行不应超过50个字符:
this template

# <type>: (If applied, this commit will...) <subject> (Max 50 char)
# |<----  Using a Maximum Of 50 Characters  ---->|


# Explain why this change is being made
# |<----   Try To Limit Each Line to a Maximum Of 72 Characters   ---->|

# Provide links or keys to any relevant tickets, articles or other resources
# Example: Github issue #23

其他Git GUI执行相同的摘要/描述约定like Atomio

https://cdn-images-1.medium.com/max/1200/1*dSJ0TgQUPX2ukRwgZi9RBQ.gif