logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

hub-compare - Open a GitHub compare page in a web browser.

Examples

           $ 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

Name

       hub-compare - Open a GitHub compare page in a web browser.

Options

       -u, --url
           Print the URL instead of opening it.

       -c, --copy
           Put the URL to clipboard instead of opening it.

       -b, --base BASE
           Base branch to compare against in case no explicit arguments were given.

       [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.

           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
           Optionally specify the owner of the repository for the compare page URL.

See Also

hub-browse(1), hub(1)

hub version 2.14.2                                 24 Aug 2023                                    hub-compare(1)

Synopsis

hubcompare [-uc] [-b BASE]
       hubcompare [-uc] [OWNER] [BASE...]HEAD

See Also