【问题标题】:R Studio - Aborting commit due to empty commit message - when deploying with blogdownR Studio - 由于空提交消息而中止提交 - 使用 blogdown 部署时
【发布时间】:2019-03-19 00:55:20
【问题描述】:

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。

【问题讨论】:

  • 您是否在向导右上角的“提交消息”框中输入了消息?
  • 我将评论字段留空。这就是问题所在。我在评论字段中放了一些通用的 cmets,现在一切正常。既然我理解了原始问题,我想错误消息更有意义。

标签: r git ubuntu github blogdown


【解决方案1】:

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

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

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

【讨论】:

  • 似乎不需要消息。如果未输入任何内容,则自动输出“NA”或“未输入消息”。也许有一个很好的理由需要一条消息。我对版本控制几乎不熟悉。感谢您的回答。
猜你喜欢
  • 1970-01-01
  • 2019-02-03
  • 2022-10-15
  • 1970-01-01
  • 2020-11-15
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多