Merge branch 'jc/web'
[git] / Documentation / git-cherry.txt
1 git-cherry(1)
2 =============
3
4 NAME
5 ----
6 git-cherry - Find commits not merged upstream
7
8 SYNOPSIS
9 --------
10 'git-cherry' [-v] <upstream> [<head>]
11
12 DESCRIPTION
13 -----------
14 The changeset (or "diff") of each commit between the fork-point and <head>
15 is compared against each commit between the fork-point and <upstream>.
16
17 Every commit that doesn't exist in the <upstream> branch
18 has its id (sha1) reported, prefixed by a symbol.  The ones that have
19 equivalent change already
20 in the <upstream> branch are prefixed with a minus (-) sign, and those
21 that only exist in the <head> branch are prefixed with a plus (+) symbol.
22
23 Because git-cherry compares the changeset rather than the commit id
24 (sha1), you can use git-cherry to find out if a commit you made locally
25 has been applied <upstream> under a different commit id.  For example,
26 this will happen if you're feeding patches <upstream> via email rather
27 than pushing or pulling commits directly.
28
29
30 OPTIONS
31 -------
32 -v::
33         Verbose.
34
35 <upstream>::
36         Upstream branch to compare against.
37
38 <head>::
39         Working branch; defaults to HEAD.
40
41 Author
42 ------
43 Written by Junio C Hamano <junkio@cox.net>
44
45 Documentation
46 --------------
47 Documentation by Junio C Hamano and the git-list <git@vger.kernel.org>.
48
49 GIT
50 ---
51 Part of the gitlink:git[7] suite
52