V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
git
Pro Git
Atlassian Git Tutorial
Pro Git 简体中文翻译
GitX
qianxi0410
V2EX  ›  git

GitHub merge 的时候的 commit message 疑问

  •  
  •   qianxi0410 · Jul 22, 2022 · 2182 views
    This topic created in 1383 days ago, the information mentioned may be changed or developed.
    最近看到有一些项目的 pr 在 merge 的时候的 commit message 会格式化为

    xxx: pr title (#pr_number)

    我自己在 merge pr 的时候出现的提交信息是 xxx merge pr #pr_number from xxx 。

    上面的 commit message 似乎更加的美观一些,但请问这是怎么做到的呢,需要手动更改 commit message 吗。。
    qianxi0410
        1
    qianxi0410  
    OP
       Jul 22, 2022
    知道了,合并的时候换成 squash and merge 就行。。。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2522 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 05:21 · PVG 13:21 · LAX 22:21 · JFK 01:21
    ♥ Do have faith in what you're doing.