现在,我看到很多来自 Linus Torvalds 和/或 Gitster 的提交,看起来像这样:
Merge branch 'maint' of git://github.com/git-l10n/git-po into maint …
* 'maint' of git://github.com/git-l10n/git-po:
l10n: de.po: fix a few minor typos
或者:
Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upst… …
…ream-linus
Pull MIPS update from Ralf Baechle:
...
* 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus: (22 commits)
MIPS: SNI: Switch RM400 serial to SCCNXP driver
...
我不知道如何做到这一点,尽管我知道用于合并分叉(或“拉取请求”)的git remote和git checkout和git merge,但它不会生成这样的消息,为什么?以及如何做到这一点(请提供示例)?
PS:我是 Linus Torvalds 提交等的粉丝,比如他的合并描述的详细程度;P
PS:这就是我过去合并东西的方式:
git remote add anotherremoot
git checkout -b anotherbranch
git pull remoteshortcut
...do tests...
git checkout master
git merge anotherbranch
git push
我从上面学到的例子:http: //viget.com/extend/i-have-a-pull-request-on-github-now-what