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