目录 搜索
Guides gitattributes giteveryday gitglossary gitignore gitmodules gitrevisions gittutorial gitworkflows Administration git archive git bundle git clean git filter-branch git fsck git gc git instaweb git reflog Basic Snapshotting git add git commit git diff git mv git reset git rm git status Branching and Merging git branch git checkout git log git merge git mergetool git stash git tag Debugging git bisect git blame git grep Email git am git format-patch git request-pull git send-email External Systems git fast-import git svn Getting and Creating Projects git clone git init Git git annotate git archimport git bisect-lk2009 git check-attr git check-mailmap git check-ref-format git checkout-index git cherry git citool git column git credential git credential-cache git credential-store git cvsexportcommit git cvsimport git cvsserver git diff-files git diff-tree git difftool git fast-export git fetch-pack git fmt-merge-msg git get-tar-commit-id git gui git http-backend git http-fetch git http-push git imap-send git index-pack git interpret-trailers git ls-remote git ls-tree git mailinfo git mailsplit git merge-file git merge-index git merge-one-file git merge-tree git mktag git mktree git name-rev git notes git p4 git pack-objects git pack-redundant git pack-refs git parse-remote git patch-id git prune git prune-packed git quiltimport git receive-pack git remote-ext git remote-fd git remote-testgit git repack git replace git rerere git send-pack git sh-i18n git sh-setup git shell git show-branch git show-index git stripspace git unpack-file git unpack-objects git upload-archive git upload-pack git var git verify-commit git verify-tag git whatchanged git worktree Inspection and Comparison git describe git shortlog git show Miscellaneous api credentials api index gitcli gitcore tutorial gitcredentials gitcvs migration gitdiffcore githooks gitk gitnamespaces gitremote helpers gitrepository layout gitsubmodules gittutorial 2 gitweb gitweb.conf pack format User Manual Patching git apply git cherry-pick git rebase git revert Plumbing Commands git cat-file git check-ignore git commit-tree git count-objects git diff-index git for-each-ref git hash-object git ls-files git merge-base git read-tree git rev-list git rev-parse git show-ref git symbolic-ref git update-index git update-ref git verify-pack git write-tree Server Admin git daemon git update-server-info Setup and Config git git config git help Sharing and Updating Projects git fetch git pull git push git remote git submodule
文字

名称

git-request-pull  - 生成未决更改的摘要

概要

git request-pull [-p] <start> <url> [<end>]

描述

生成一个请求,请求您的上游项目将更改拖入其树中。打印到标准输出的请求从分支描述开始,汇总变化并指示它们可以从哪里拉出。

上游项目预计具有名为的提交,<start>并且输出会要求它<end>通过访问名为<url>。的存储库来整合自该提交以来所做的更改,直到由指定的提交。

选项

-p

在输出中包含补丁文本。

<start>

承诺开始。这会命名已在上游历史记录中的提交。

<url>

要从中提取的存储库 URL。

<end>

提交结束于(默认为 HEAD)。这将提交的名称命名为要求提取的历史记录的提示。

当名称为 repository <url>的 ref 在与本地 ref 不同的 ref 的一端提交时,可以使用该<local>:<remote>语法的名称,冒号:和远程名称。

示例

想象一下,您masterv1.0发布之前在分支上构建了自己的工作,并希望将其集成到项目中。首先,您将这一变化推送到您的公共存储库供其他人查看:

git push https://git.ko.xz/project master

然后,你运行这个命令:

git request-pull v1.0 https://git.ko.xz/project master

这会向上游产生一个请求,总结v1.0版本与你之间的变化master,从而将它从公共存储库中提取出来。

如果您将更改推送到名称与本地不同的分支,例如

git push https://git.ko.xz/project master:for-linus

那么你可以问这个问题

git request-pull v1.0 https://git.ko.xz/project master:for-linus
上一篇: 下一篇: