This is a gh
extension to replace the compare
command in the deprecated tool, hub
.
gh extension install wassimk/gh-compare
Compare the current branch against main
. If this repository is a fork, it uses the upstream remote.
gh compare
Compare the current branch against another.
gh compare other_branch
Compare any two branches.
gh compare their_branch...my_branch
Compare any two commits.
gh compare 7a67154..205b073