GitHub提交扩展消息 [英] GitHub commit with extended message

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

问题描述

我最近使用GitHub并下载了GitHub for Mac。



我注意到您可以使用GitHub for Mac添加'扩展描述'。如何使用命令行添加扩展描述?



我可以将扩展描述添加到现有的提交吗?

解决方案

运行 git commit 时不会显示任何消息,它会打开您最喜欢的*文本编辑器来编写提交消息。有关邮件格式的详细信息将显示在示例中。

第一行是简短描述。在它后面留下一个空行。其他一切都是扩展描述。



*:对于最喜欢的一些值;结果可能不同

I recently use GitHub and downloaded GitHub for Mac.

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?

解决方案

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

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

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