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

标签 git bitbucket commit-message

风格指南“如何编写 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/

相关文章:

在提示中获取未 merge 路径的 Git 快捷方式

从本地到 bitbucket/github hub 再到实时网络服务器的 Git 工作流程

git - 用于恢复多个 git 提交的信息性消息

git - 无法使用 egit 提交到 github repo

php - “git pull”在 SSH 中执行,但不在 github 接收后脚本中执行

c - Linux 内核出错

linux - 使用 ssh 命令行将存储库中的所有文件从一个目录移动到另一个目录

version-control - 选择 Mercurial 主机

git - 为 git 输入提交消息后要做什么?