"pure git"有拉取请求的概念吗?
Does "pure git" have the concept of a pull request?
当然有 git pull
,但是在 "pure" git 中是否有正式的方法(即不是发送电子邮件等临时方法) ?
答案是肯定的。
pull request
基于 git 内部特征名称:request-pull
git request-pull
这是此功能的文档
- https://git-scm.com/docs/git-request-pull
- https://www.kernel.org/pub/software/scm/git/docs/git-request-pull.html
基于这个概念创建了 pull request
,您可以想象这个名字来自....
Other similar methods:
git format-patch
git format-patch master --stdout > XXXX.patch
git format-patch
This command will create patch which can later on can be applied on top of any other commit using the git apply
command
Prepare each commit with its patch in one file per commit, formatted to resemble UNIX mailbox format. The output of this command is convenient for e-mail submission or for use with git am.
git apply
Reads the supplied diff output (i.e. "a patch") and applies it to files. With the --index
option the patch is also applied to the index, and with the --cached
option the patch is only applied to the index.
Without these options, the command applies the patch only to files, and does not require them to be in a Git repository.
当然有 git pull
,但是在 "pure" git 中是否有正式的方法(即不是发送电子邮件等临时方法) ?
答案是肯定的。
pull request
基于 git 内部特征名称:request-pull
git request-pull
这是此功能的文档
- https://git-scm.com/docs/git-request-pull
- https://www.kernel.org/pub/software/scm/git/docs/git-request-pull.html
基于这个概念创建了 pull request
,您可以想象这个名字来自....
Other similar methods:
git format-patch
git format-patch master --stdout > XXXX.patch
git format-patch
This command will create patch which can later on can be applied on top of any other commit using the
git apply
commandPrepare each commit with its patch in one file per commit, formatted to resemble UNIX mailbox format. The output of this command is convenient for e-mail submission or for use with git am.
git apply
Reads the supplied diff output (i.e. "a patch") and applies it to files. With the
--index
option the patch is also applied to the index, and with the--cached
option the patch is only applied to the index.Without these options, the command applies the patch only to files, and does not require them to be in a Git repository.