gitlab 中没有考虑 Git markdown 吗?我的提交消息显示为纯文本

Mar*_*han 0 git gitlab

我已经准备好了下面的提交文件,然后将其与提交的其他文件一起git commit -F commitMessage.md推送到Gitlab 。

\n
Apprentissage\n# Informatique\n\n   - Documents re-r\xc3\xa9partis pour permettre d\'autres divisions\n   - elk.md devient : `elk-01-installation-et-configuration`, `elk-02-elasticsearch`, `elk-03-logstash`, `elk-04-kibana`, `elk-05-filebeat-metricsbeat`.\n \n# Math\xc3\xa9matiques\n\n   - Fonctions et applications >> `mathematiques-05-les-applications`\n\n# Statistiques\n\n   - Documents re-r\xc3\xa9partis pour permettre d\'autres divisions\n   - Les tests statistiques et hypoth\xc3\xa8ses >> `statistiques_05-les-tests-statistiques-et-hypotheses`\n   - hypoth\xc3\xa8ses fortes et faibles (tests unilat\xc3\xa9ral ou bilat\xc3\xa9ral) >> `statistiques_05-les-tests-statistiques-et-hypotheses`\n   - La comparaison d\'\xc3\xa9chantillons (par moyenne) >> `statistiques_06-la-comparaison-echantillons`\n   - Probabilit\xc3\xa9s : passe du document 04 au `statistiques_40-les-probabilit\xc3\xa9s`\n\n# Territoire\n\n   - Gestion des Milieux Aquatiques et Pr\xc3\xa9vention des Inondations (GEMAPI) >> `territoire-13-environnement`\n   - Union Europ\xc3\xa9enne : op\xc3\xa9rations et programmes op\xc3\xa9rationnels >> \xc2\xa0`territoire-14-UE-operations-po-fonds-europ\xc3\xa9ens`\n   - Union Europ\xc3\xa9enne : les fonds europ\xc3\xa9ens >> \xc2\xa0`territoire-14-UE-operations-po-fonds-europ\xc3\xa9ens`\n   - Union Europ\xc3\xa9enne : les strat\xc3\xa9gies europ\xc3\xa9ennes >> \xc2\xa0`territoire-15-UE-les-strat\xc3\xa9gies-europ\xc3\xa9ennes`\n
Run Code Online (Sandbox Code Playgroud)\n

Gitlab不会启动该提交消息的降价转换。例如 :

\n
    \n
  • #起始行不会转换为标题
  • \n
  • 勾选`下的内容没有看到应用的特殊格式。
  • \n
\n

在此输入图像描述

\n

我的计算机上的Agit config --list没有显示任何特殊内容(#例如,我没有要求用其他内容替换字符)。
\n而且我不认为我的GitLab帐户是专门配置的。

\n

我必须面对一些简单的事情,但它是什么?

\n

syt*_*ech 5

这根本不是 GitLab 的功能。Markdown文件在 GitLab 的文件查看器中呈现,但提交消息不支持任何特别特殊的格式。

提交消息中的某些内容,例如 MR/​​问题引用(例如!123)和 URL 可能会在 UI 中获得超链接,但就提交消息而言仅此而已。

在提交消息中支持降价可能也不是一个实用的功能。提交消息旨在在许多不同的平台和工具中使用/读取,包括 git 命令行、各种 git gui 软件、所有风格的 git 服务器等。在一个产品中允许 markdown 可能会使在另一种工具中读取提交消息变得困难。这一直是反对此类实施的长期争论。

据我所知,实际上没有任何 git 服务器支持从提交消息中渲染 markdown。

作为一种可能的替代方案,您可以考虑类似gitlab 对其changelog.mdgit 预告片所做的事情(对于 GitLab 开源项目本身)。