R Studio-通过空提交消息中止提交-使用Blogdown部署时

时间:2019-03-19 00:55:21

标签: r git ubuntu github blogdown

I'm following this YouTube guide,介绍如何使用GitHub和Netlify部署R Blogdown网站。在8:00分钟,我必须提交更改。当我使用R Studio的向导进行操作时,出现此错误:

>>> git commit -F /tmp/Cjwox9JEZ8/git-commit-message-931l81328473.txt
Aborting commit due to empty commit message.

我应该怎么做才能前进?我的操作系统是Ubuntu 18.04,但我也可以访问Windows 10。

1 个答案:

答案 0 :(得分:1)

注意:错误消息是same when using Git directly in command line

这就是为什么视频清楚地显示了在R Studio中输入的消息的原因。

只有git commit --allow-empty-message允许您跳过输入消息(仅在CLI中,而不是在R Studio中),并且该选项仅可用于外部SCM接口脚本。