1hub-compare(1) hub manual hub-compare(1)
2
3
4
6 hub-compare - Open a GitHub compare page in a web browser.
7
9 hub compare [-uc] [USER] [[START...]END]
10 hub compare [-uc] [-b BASE]
11
13 -u, --url
14 Print the URL instead of opening it.
15
16 -c, --copy
17 Put the URL to clipboard instead of opening it.
18
19 -b, --base BASE
20 Base branch to compare against in case no explicit arguments were
21 given.
22
23 [START...]END
24 Branch names, tag names, or commit SHAs specifying the range to
25 compare. END defaults to the current branch name.
26
27 If a range with two dots (A..B) is given, it will be transformed
28 into a range with three dots.
29
31 $ hub compare refactor
32 > open https://github.com/USER/REPO/compare/refactor
33
34 $ hub compare v1.0..v1.1
35 > open https://github.com/USER/REPO/compare/v1.0...v1.1
36
37 $ hub compare -u jingweno feature
38 > echo https://github.com/jingweno/REPO/compare/feature
39
41 hub-browse(1), hub(1)
42
43
44
45
46hub version 2.11.1 29 Mar 2019 hub-compare(1)