Git/GitHub提交带有扩展的消息/描述 [英] Git/GitHub commit with extended message/description

查看:108
本文介绍了Git/GitHub提交带有扩展的消息/描述的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近使用GitHub并下载了Mac版GitHub.

I recently use GitHub and downloaded GitHub for Mac.

我注意到您可以使用Mac版GitHub添加扩展说明".如何使用命令行添加扩展说明?

I noticed you can add an 'extended description' using GitHub for Mac. How do I add an extended description using the command line?

我可以在现有提交中添加扩展说明吗?

Can I add an extended description to an existing commit?

推荐答案

在不显示消息的情况下运行git commit,它将打开您喜欢的*文本编辑器以编写提交消息.有关消息格式的详细信息将出现在示例中.

Run git commit without a message and it'll open up your favorite* text editor to write a commit message. Details on the format of the message will appear in the sample.

第一行是简短描述.在其后留一个空白行.其他所有内容都是扩展说明.

First line is the short description. Leave a blank line after it. Everything else is the extended description.

*:某些收藏夹"值;结果可能会有所不同

*: for some values of "favorite"; results may vary

这篇关于Git/GitHub提交带有扩展的消息/描述的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆