Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/github/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
是什么导致GitHub将提交显示为由一个用户*与另一个用户*提交_Git_Github - Fatal编程技术网

是什么导致GitHub将提交显示为由一个用户*与另一个用户*提交

是什么导致GitHub将提交显示为由一个用户*与另一个用户*提交,git,github,Git,Github,举个例子来看 注意这里显示了两个用户,@unional和@blakeembrey 这是什么原因 编辑一些进一步的研究: $ git clone git@github.com:typings/typings.git $ cd typings $ git show abea10b5787e1a18634d5f37bb2fa56550c32fd1 commit abea10b5787e1a18634d5f37bb2fa56550c32fd1 Author: Homa Wong <homawo

举个例子来看

注意这里显示了两个用户,@unional和@blakeembrey

这是什么原因


编辑一些进一步的研究:

$ git clone git@github.com:typings/typings.git
$ cd typings
$ git show abea10b5787e1a18634d5f37bb2fa56550c32fd1
commit abea10b5787e1a18634d5f37bb2fa56550c32fd1
Author: Homa Wong <homawong@gmail.com>
Date:   Thu May 26 09:47:58 2016 -0700

    Update `bundle` help (#557)

diff --git a/src/bin-bundle.ts b/src/bin-bundle.ts
index 8e6dd26..2af3599 100644
--- a/src/bin-bundle.ts
+++ b/src/bin-bundle.ts
@@ -5,11 +5,10 @@ import { bundle } from 'typings-core'

 export function help () {
   return `
-typings bundle --out <directory>
+typings bundle --out <filepath>

 Options:
-  [--out|-o] <directory> The bundled output directory
-  [--name] <name>        Bundle module name
+  [--out|-o] <filepath>  The bundled output file path
   [--global|-G]          Bundle as an global definition
 `
 }
这里我们看到了一个不同的作者和提交人。这似乎是一个重新设定基础而不是合并的公关。

这是一个合并。当通过将所有提交合并为一个大提交来合并请求/分支时,以下人员:

  • 创建拉取请求
  • 提交到将被合并的分支
  • 合并拉取请求
将在创建的提交上显示为提交者。显然,创建拉请求的人将在提交中获得他/她的标识,而进行单独提交并将其压扁的人将存储为元数据

在这种情况下:

  • unional是创建pull请求并进行唯一提交的人
  • blakeembrey是合并pull请求的人

作者vscommitter@IsmailBadawi,我不相信是这样。查看我的编辑。如果是合并提交,为什么只有一个父级?@DrewNoakes Wait,
Author: Homa Wong <homawong@gmail.com>  2016-05-26 17:47:58
Committer: Blake Embrey <hello@blakeembrey.com>  2016-05-26 17:47:58
Parent: b79fd3f0f9af245a790717dcb5493fb49db2788d (Update README.md to add example of dt install (#547))
Branches: master, remotes/origin/master
Follows: v1.0.4
Precedes: 

    Update `bundle` help (#557)