hub-compare(1)
hub-compare β your GitHub compare-page bestie π
okay so this is hub-compare, straight outta the hub manual β¨ and the whole assignment is: open a GitHub compare page in a web browser. Thatβs the vibe. No cap. ππ
π NAME π
hub-compare β opens a GitHub compare page in a web browser. iconic behavior, honestly. π«Ά
π¦ SYNOPSIS π¦
hub compare [-uc] [-b BASE]
hub compare [-uc] [OWNER] [BASE...]HEAD
β¨ OPTIONS β¨
-u,--urlβ print the URL instead of opening it. lowkey perfect when you just want the link, iykyk π«Ά-c,--copyβ put the URL to clipboard instead of opening it. clipboard slay π-b,--base BASEβ base branch to compare against in case no explicit arguments were given. bestie, thatβs the default-base situation πΈ[BASE...]HEADβ branch names, tag names, or commit SHAs specifying the range to compare. If a range with two dots (A..B) is given, it will be transformed into a range with three dots. TheBASEportion defaults to the default branch of the repository. TheHEADargument defaults to the current branch. If the current branch is not pushed to a remote, the command will error. π
β οΈ tiny but important vibe check: if the current branch is not pushed to a remote, the command will error. not me warning you twice β okay maybe me warning you twice π
OWNERβ optionally specify the owner of the repository for the compare page URL. use it when you need thatOWNERslot filled π
π EXAMPLES π
vibe check β these are the exact examples, no edits:
$ 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
π«Ά SEE ALSO π«Ά
go say hi to hub-browse(1) and hub(1) too π theyβre part of the fam.
mwah π β this page is from hub version 2.14.2, dated 07 Jan 2024. periodt. π
π¦ where this page comes from
- opensuse-leap 16.0: hub 2.14.2-bp160.1.13 Β· MIT
- opensuse-leap 16.0: hub 2.14.2-bp160.1.13 Β· MIT
- opensuse-leap 16.0: hub 2.14.2-bp160.1.13 Β· MIT
- opensuse-leap 16.0: hub 2.14.2-bp160.1.13 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms