【问题标题】:Link another commit's reference in commit message gitlab在提交消息 gitlab 中链接另一个提交的引用
【发布时间】:2021-06-26 10:21:47
【问题描述】:

我知道我们可以在提交消息中将问题提及为“#issue_no”,但是否可以将其链接到 gitlab 中的另一个提交?

在提交消息中提及提交 SHA 或完整的提交 URL?

【问题讨论】:

    标签: git gitlab git-commit


    【解决方案1】:

    查看文档:https://docs.gitlab.com/ce/user/markdown.html#special-gitlab-references

    references input cross-project reference shortcut inside same namespace
    specific commit 9ba12248 namespace/project@9ba12248 project@9ba12248

    所以你可以只在一个项目中使用提交哈希。

    【讨论】:

    • 这适用于提交在同一个项目中的情况。同一个Gitlab实例的其他项目中的commits也可以用全链接或者……交叉引用。喜欢namespace/project@9ba12248
    猜你喜欢
    • 2022-06-10
    • 1970-01-01
    • 2019-05-21
    • 2021-12-07
    • 2015-10-20
    • 2011-09-07
    • 2010-12-23
    • 2011-03-22
    • 1970-01-01
    相关资源
    最近更新 更多