# git-request-pull
> 原文: [https://git-scm.com/docs/git-request-pull](https://git-scm.com/docs/git-request-pull)
## 名稱
git-request-pull - 生成掛起更改的摘要
## 概要
```
git request-pull [-p] <start> <url> [<end>]
```
## 描述
生成一個請求,要求您的上游項目將更改提取到其樹中。打印到標準輸出的請求從分支描述開始,總結了更改并指示它們可以從哪里拉出。
上游項目應該具有`<start>`命名的提交,并且輸出要求它通過訪問由`<url>`命名的存儲庫來集成自提交以來所做的更改,直到`<end>`命名的提交。
## OPTIONS
```
-p
```
在輸出中包含補丁文本。
```
<start>
```
承諾開始。這將命名已在上游歷史記錄中的提交。
```
<url>
```
要從中提取的存儲庫URL。
```
<end>
```
承諾結束于(默認為HEAD)。這會在您要求提取的歷史記錄的末尾命名提交。
當`<url>`命名的存儲庫在ref的一端提交與本地的ref不同時,可以使用`<local>:<remote>`語法,使其本地名稱為冒號`:`,并且遠程名稱。
## 例子
想象一下,您在`v1.0`版本之上的`master`分支上構建了您的工作,并希望將其集成到項目中。首先,您將該更改推送到您的公共存儲庫,供其他人查看:
```
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
```
## GIT
部分 [git [1]](https://git-scm.com/docs/git) 套件
- git
- git-config
- git-help
- git-init
- git-clone
- git-add
- git-status
- git-diff
- git-commit
- git-reset
- git-rm
- git-mv
- git-branch
- git-checkout
- git-merge
- git-mergetool
- git-log
- git-stash
- git-tag
- git-worktree
- git-fetch
- git-pull
- git-push
- git-remote
- git-submodule
- git-show
- git-log
- git-shortlog
- git-describe
- git-apply
- git-cherry-pick
- git-rebase
- git-revert
- git-bisect
- git-blame
- git-grep
- gitattributes
- giteveryday
- gitglossary
- githooks
- gitignore
- gitmodules
- gitrevisions
- gittutorial
- gitworkflows
- git-am
- git-format-patch
- git-send-email
- git-request-pull
- git-svn
- git-fast-import
- git-clean
- git-gc
- git-fsck
- git-reflog
- git-filter-branch
- git-instaweb
- git-archive
- git-bundle
- git-daemon
- git-update-server-info
- git-cat-file
- git-check-ignore
- git-checkout-index
- 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