gpt4 book ai didi

git - "Merged in"是由 bitbucket 还是 git 创建的提交消息?

转载 作者:太空狗 更新时间:2023-10-29 14:18:38 24 4
gpt4 key购买 nike

风格指南“如何编写 Git 提交消息”部分 5. Use the imperative mood in the subject line声明 git 本身使用命令式语气:

The imperative can sound a little rude; that's why we don't often use it. But it's perfect for git commit subject lines. One reason for this is that git itself uses the imperative whenever it creates a commit on your behalf.

For example, the default message created when using git merge reads:

Merge branch 'myfeature'

And when using git revert:

Revert "Add the thing with the stuff"

This reverts commit cc87791524aedd593cff5a74532befe7ab69ce9d.

Or when clicking the "Merge" button on a GitHub pull request:

Merge pull request #123 from someuser/somebranch

但是,在 bitbucket 上的 git 存储库上,我遇到了指示性情绪:

Merged in feature/123 (pull request #1234)

这是一条由 bitbucket 而不是 git 创建的消息吗?

最佳答案

从我团队的分支来看,当有人 merge 他们自己的 PR 时,您会看到

“merge bitbucket.org 的分支‘branchName’...”

当有人 merge 别人的 PR 时,你会看到

“merge 到 teamName/repositoryName/branchName”

关于git - "Merged in"是由 bitbucket 还是 git 创建的提交消息?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30721903/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com