hub-compare(1) | hub manual | hub-compare(1) |
hub-compare - Open a GitHub compare page in a web browser.
hub compare [-uc] [-b BASE]
hub compare [-uc] [OWNER] [BASE...]HEAD
-u, --url
-c, --copy
-b, --base BASE
[BASE...]HEAD
The BASE portion defaults to the default branch of the repository.
The HEAD argument defaults to the current branch. If the current branch is not pushed to a remote, the command will error.
OWNER
$ hub compare > open https://github.com/OWNER/REPO/compare/BRANCH $ hub compare refactor > open https://github.com/OWNER/REPO/compare/refactor $ hub compare v1.0..v1.1 > open https://github.com/OWNER/REPO/compare/v1.0...v1.1 $ hub compare -u jingweno feature https://github.com/jingweno/REPO/compare/feature
18 Jul 2021 | hub version 2.14.2 |