git - gitlab 提交中的红色和粗体文本是什么意思?

标签 git gitlab commit color-scheme

我正在使用 Gitlab 检查我和其他人在存储库中所做的提交。如图所示,Gitlab 显示提交。它以绿色背景突出显示添加的行,以红色背景突出显示已删除的行。但是有些行显示为红色文本。这是什么意思?其他单词以粗体黑色显示。这是什么意思?

enter image description here

最佳答案

来自 https://docs.gitlab.com/ee/user/project/highlighting.html

GitLab provides syntax highlighting on all files and snippets through the Rouge rubygem. It will try to guess what language to use based on the file extension, which most of the time is sufficient.

还有

If GitLab is guessing wrong, you can override its choice of language using the gitlab-language attribute in .gitattributes.

所以 Gitlab 可能猜错了语法。

关于git - gitlab 提交中的红色和粗体文本是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51668175/

相关文章:

Gitlab 克隆项目 : authentication failed

gitlab - 默认情况下公开存储库

apache - 提交访问被拒绝 : 'foobar' MKACTIVITY MYREPO: 时出现 SVN 错误

git - 我可以在 git 中为 "pull --rebase"设置别名吗?

git - github中的重复文件夹

git - 在进行 git稀疏 checkout 时转义目录名称中的空格

svn - 如何使用 TextMate 提交对 Subversion 存储库的更改

git 和 "Server aborted the SSL handshake"错误

Gitlab 问题跟踪与 Bugzilla 的集成

git - 发布部分 git 历史