Junio C Hamano | 215a7ad | 2005-09-07 17:26:23 -0700 | [diff] [blame] | 1 | git-request-pull(1) |
| 2 | =================== |
Junio C Hamano | 7fc9d69 | 2005-08-23 01:49:47 -0700 | [diff] [blame] | 3 | |
| 4 | NAME |
| 5 | ---- |
Fredrik Kuivinen | 7bd7f28 | 2006-03-09 17:24:50 +0100 | [diff] [blame] | 6 | git-request-pull - Generates a summary of pending changes |
Junio C Hamano | 7fc9d69 | 2005-08-23 01:49:47 -0700 | [diff] [blame] | 7 | |
| 8 | SYNOPSIS |
| 9 | -------- |
Martin von Zweigbergk | 7791a1d | 2011-07-01 22:38:26 -0400 | [diff] [blame] | 10 | [verse] |
Stephen Boyd | d8e3ac7 | 2010-07-23 09:31:27 -0700 | [diff] [blame] | 11 | 'git request-pull' [-p] <start> <url> [<end>] |
Junio C Hamano | 7fc9d69 | 2005-08-23 01:49:47 -0700 | [diff] [blame] | 12 | |
| 13 | DESCRIPTION |
| 14 | ----------- |
Junio C Hamano | 7fc9d69 | 2005-08-23 01:49:47 -0700 | [diff] [blame] | 15 | |
Junio C Hamano | ec44507 | 2014-03-12 11:04:11 -0700 | [diff] [blame] | 16 | Generate a request asking your upstream project to pull changes into |
Philip Oakley | 561d2b7 | 2015-09-14 15:10:53 +0100 | [diff] [blame] | 17 | their tree. The request, printed to the standard output, |
| 18 | begins with the branch description, summarizes |
Junio C Hamano | ec44507 | 2014-03-12 11:04:11 -0700 | [diff] [blame] | 19 | the changes and indicates from where they can be pulled. |
| 20 | |
| 21 | The upstream project is expected to have the commit named by |
| 22 | `<start>` and the output asks it to integrate the changes you made |
| 23 | since that commit, up to the commit named by `<end>`, by visiting |
| 24 | the repository named by `<url>`. |
| 25 | |
Junio C Hamano | 7fc9d69 | 2005-08-23 01:49:47 -0700 | [diff] [blame] | 26 | |
| 27 | OPTIONS |
| 28 | ------- |
Stephen Boyd | d8e3ac7 | 2010-07-23 09:31:27 -0700 | [diff] [blame] | 29 | -p:: |
Junio C Hamano | ec44507 | 2014-03-12 11:04:11 -0700 | [diff] [blame] | 30 | Include patch text in the output. |
Stephen Boyd | d8e3ac7 | 2010-07-23 09:31:27 -0700 | [diff] [blame] | 31 | |
A Large Angry SCM | b5dca4b | 2005-08-29 22:33:14 -0400 | [diff] [blame] | 32 | <start>:: |
Junio C Hamano | ec44507 | 2014-03-12 11:04:11 -0700 | [diff] [blame] | 33 | Commit to start at. This names a commit that is already in |
| 34 | the upstream history. |
Junio C Hamano | 7fc9d69 | 2005-08-23 01:49:47 -0700 | [diff] [blame] | 35 | |
A Large Angry SCM | b5dca4b | 2005-08-29 22:33:14 -0400 | [diff] [blame] | 36 | <url>:: |
Junio C Hamano | ec44507 | 2014-03-12 11:04:11 -0700 | [diff] [blame] | 37 | The repository URL to be pulled from. |
Junio C Hamano | 7fc9d69 | 2005-08-23 01:49:47 -0700 | [diff] [blame] | 38 | |
A Large Angry SCM | b5dca4b | 2005-08-29 22:33:14 -0400 | [diff] [blame] | 39 | <end>:: |
Junio C Hamano | ec44507 | 2014-03-12 11:04:11 -0700 | [diff] [blame] | 40 | Commit to end at (defaults to HEAD). This names the commit |
| 41 | at the tip of the history you are asking to be pulled. |
| 42 | + |
| 43 | When the repository named by `<url>` has the commit at a tip of a |
| 44 | ref 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 |
| 46 | its remote name. |
| 47 | |
| 48 | |
| 49 | EXAMPLE |
| 50 | ------- |
| 51 | |
| 52 | Imagine that you built your work on your `master` branch on top of |
| 53 | the `v1.0` release, and want it to be integrated to the project. |
| 54 | First you push that change to your public repository for others to |
| 55 | see: |
| 56 | |
| 57 | git push https://git.ko.xz/project master |
| 58 | |
| 59 | Then, you run this command: |
| 60 | |
| 61 | git request-pull v1.0 https://git.ko.xz/project master |
| 62 | |
| 63 | which will produce a request to the upstream, summarizing the |
| 64 | changes between the `v1.0` release and your `master`, to pull it |
| 65 | from your public repository. |
| 66 | |
| 67 | If you pushed your change to a branch whose name is different from |
| 68 | the one you have locally, e.g. |
| 69 | |
| 70 | git push https://git.ko.xz/project master:for-linus |
| 71 | |
| 72 | then you can ask that to be pulled with |
| 73 | |
| 74 | git request-pull v1.0 https://git.ko.xz/project master:for-linus |
| 75 | |
Junio C Hamano | 7fc9d69 | 2005-08-23 01:49:47 -0700 | [diff] [blame] | 76 | |
Junio C Hamano | 7fc9d69 | 2005-08-23 01:49:47 -0700 | [diff] [blame] | 77 | GIT |
| 78 | --- |
Christian Couder | 9e1f0a8 | 2008-06-06 09:07:32 +0200 | [diff] [blame] | 79 | Part of the linkgit:git[1] suite |