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