blob: 4d4392d0f841b7e447b536ef1281fcbe2e49786d [file] [log] [blame]
Junio C Hamano1a4e8412005-12-27 08:17:231git-request-pull(1)
2===================
3
4NAME
5----
Junio C Hamano01078922006-03-10 00:31:476git-request-pull - Generates a summary of pending changes
Junio C Hamano1a4e8412005-12-27 08:17:237
8SYNOPSIS
9--------
Junio C Hamano15567bc2011-07-23 00:51:5910[verse]
Junio C Hamanob4448a82010-07-26 09:02:3211'git request-pull' [-p] <start> <url> [<end>]
Junio C Hamano1a4e8412005-12-27 08:17:2312
13DESCRIPTION
14-----------
15
Junio C Hamano7c59c672014-03-21 22:08:3116Generate a request asking your upstream project to pull changes into
Junio C Hamano7db630e2015-09-17 20:26:2217their tree. The request, printed to the standard output,
18begins with the branch description, summarizes
Junio C Hamano7c59c672014-03-21 22:08:3119the changes and indicates from where they can be pulled.
20
21The upstream project is expected to have the commit named by
22`<start>` and the output asks it to integrate the changes you made
23since that commit, up to the commit named by `<end>`, by visiting
24the repository named by `<url>`.
25
Junio C Hamano1a4e8412005-12-27 08:17:2326
27OPTIONS
28-------
Junio C Hamanob4448a82010-07-26 09:02:3229-p::
Junio C Hamano7c59c672014-03-21 22:08:3130Include patch text in the output.
Junio C Hamanob4448a82010-07-26 09:02:3231
Junio C Hamano1a4e8412005-12-27 08:17:2332<start>::
Junio C Hamano7c59c672014-03-21 22:08:3133Commit to start at. This names a commit that is already in
34the upstream history.
Junio C Hamano1a4e8412005-12-27 08:17:2335
36<url>::
Junio C Hamano7c59c672014-03-21 22:08:3137The repository URL to be pulled from.
Junio C Hamano1a4e8412005-12-27 08:17:2338
39<end>::
Junio C Hamano7c59c672014-03-21 22:08:3140Commit to end at (defaults to HEAD). This names the commit
41at the tip of the history you are asking to be pulled.
42+
43When the repository named by `<url>` has the commit at a tip of a
44ref that is different from the ref you have locally, you can use the
45`<local>:<remote>` syntax, to have its local name, a colon `:`, and
46its remote name.
47
48
Junio C Hamanob9d9d902018-05-23 07:07:4249EXAMPLES
50--------
Junio C Hamano7c59c672014-03-21 22:08:3151
52Imagine that you built your work on your `master` branch on top of
53the `v1.0` release, and want it to be integrated to the project.
54First you push that change to your public repository for others to
55see:
56
57git push https://git.ko.xz/project master
58
59Then, you run this command:
60
61git request-pull v1.0 https://git.ko.xz/project master
62
63which will produce a request to the upstream, summarizing the
64changes between the `v1.0` release and your `master`, to pull it
65from your public repository.
66
67If you pushed your change to a branch whose name is different from
68the one you have locally, e.g.
69
70git push https://git.ko.xz/project master:for-linus
71
72then you can ask that to be pulled with
73
74git request-pull v1.0 https://git.ko.xz/project master:for-linus
75
Junio C Hamano1a4e8412005-12-27 08:17:2376
Junio C Hamano1a4e8412005-12-27 08:17:2377GIT
78---
Junio C Hamanof7c042d2008-06-06 22:50:5379Part of the linkgit:git[1] suite