]>
Commit | Line | Data |
---|---|---|
215a7ad1 JH |
1 | git-cherry-pick(1) |
2 | ================== | |
de2b82c6 JH |
3 | v0.99.5 Aug 2005 |
4 | ||
5 | NAME | |
6 | ---- | |
215a7ad1 | 7 | git-cherry-pick - Apply the change introduced by an existing commit. |
de2b82c6 JH |
8 | |
9 | SYNOPSIS | |
10 | -------- | |
215a7ad1 | 11 | 'git-cherry-pick' [-n] [-r] <commit> |
de2b82c6 JH |
12 | |
13 | DESCRIPTION | |
14 | ----------- | |
15 | Given one existing commit, apply the change the patch introduces, and record a | |
16 | new commit that records it. This requires your working tree to be clean (no | |
17 | modifications from the HEAD commit). | |
18 | ||
19 | OPTIONS | |
20 | ------- | |
21 | <commit>:: | |
22 | Commit to cherry-pick. | |
23 | ||
24 | -r:: | |
25 | Usuall the command appends which commit was | |
26 | cherry-picked after the original commit message when | |
27 | making a commit. This option, '--replay', causes it to | |
28 | use the original commit message intact. This is useful | |
29 | when you are reordering the patches in your private tree | |
30 | before publishing, and is used by 'git rebase'. | |
31 | ||
32 | -n:: | |
33 | Usually the command automatically creates a commit with | |
34 | a commit log message stating which commit was | |
35 | cherry-picked. This flag applies the change necessary | |
36 | to cherry-pick the named commit to your working tree, | |
37 | but does not make the commit. In addition, when this | |
38 | option is used, your working tree does not have to match | |
39 | the HEAD commit. The cherry-pick is done against the | |
40 | beginning state of your working tree. | |
41 | ||
42 | This is useful when cherry-picking more than one commits' | |
43 | effect to your working tree in a row. | |
44 | ||
45 | ||
46 | Author | |
47 | ------ | |
48 | Written by Junio C Hamano <junkio@cox.net> | |
49 | ||
50 | Documentation | |
51 | -------------- | |
52 | Documentation by Junio C Hamano and the git-list <git@vger.kernel.org>. | |
53 | ||
54 | GIT | |
55 | --- | |
a7154e91 | 56 | Part of the gitlink:git[7] suite |
de2b82c6 | 57 |