{"id":44503933,"url":"https://github.com/wassimk/gh-compare","last_synced_at":"2026-04-02T18:40:13.922Z","repository":{"id":240256960,"uuid":"802131080","full_name":"wassimk/gh-compare","owner":"wassimk","description":"A GitHub CLI extension to quickly open branch comparison URLs","archived":false,"fork":false,"pushed_at":"2026-03-29T23:56:43.000Z","size":70,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-30T01:36:57.922Z","etag":null,"topics":["branch-comparison","cli","gh-cli","gh-extension","git","github","go","golang","hub"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wassimk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-05-17T15:19:44.000Z","updated_at":"2026-03-29T23:41:04.000Z","dependencies_parsed_at":"2024-05-17T16:21:47.601Z","dependency_job_id":"50fa4690-b01d-4c10-9cf9-82ce00a2f53b","html_url":"https://github.com/wassimk/gh-compare","commit_stats":null,"previous_names":["wassimk/gh-compare"],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/wassimk/gh-compare","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wassimk%2Fgh-compare","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wassimk%2Fgh-compare/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wassimk%2Fgh-compare/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wassimk%2Fgh-compare/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wassimk","download_url":"https://codeload.github.com/wassimk/gh-compare/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wassimk%2Fgh-compare/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31313142,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T12:59:32.332Z","status":"ssl_error","status_checked_at":"2026-04-02T12:54:48.875Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["branch-comparison","cli","gh-cli","gh-extension","git","github","go","golang","hub"],"created_at":"2026-02-13T08:21:41.459Z","updated_at":"2026-04-02T18:40:13.917Z","avatar_url":"https://github.com/wassimk.png","language":"Go","readme":"## gh-compare\n\nA [`gh`](https://cli.github.com/) CLI extension that opens GitHub's compare view in your browser. It detects forks, resolves your repository's default branch automatically, and supports branch and commit comparisons.\n\nThis was built to replace the [`compare`](https://hub.github.com/hub-compare.1.html) command from the deprecated [`hub`](https://hub.github.com/) tool.\n\n### 🛠️ Installation\n\n```shell\ngh extension install wassimk/gh-compare\n```\n\n### 💻 Usage\n\nThe command must be run inside a git repository with a GitHub remote.\n\nCompare the current branch against the repository's default branch.\n\n```shell\ngh compare\n```\n\nCompare the current branch against another branch.\n\n```shell\ngh compare other_branch\n```\n\nCompare any two branches using `...` (three-dot) notation. This shows only the changes introduced by the second branch, like a pull request diff. Commits added to the first branch after the two diverged are ignored.\n\n```shell\ngh compare main...my_branch\n```\n\nYou can also use `..` (two-dot) notation for a direct diff between two branches as they exist right now. Unlike three-dot, this includes the effect of commits on both sides.\n\n```shell\ngh compare main..my_branch\n```\n\nCompare any two commits.\n\n```shell\ngh compare 7a67154..205b073\n```\n\n### 🍴 Forks\n\nIf your repository is a fork with an `upstream` remote, `gh compare` automatically generates a cross-fork compare URL. For example, running `gh compare` on a fork will produce a URL like:\n\n```\nhttps://github.com/upstream-owner/repo/compare/main...your-user:your-branch\n```\n\nThis matches GitHub's compare-across-forks behavior so the diff is shown against the upstream repository.\n\n### 📦 Upgrade / Uninstall\n\n```shell\ngh extension upgrade wassimk/gh-compare\ngh extension remove gh-compare\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwassimk%2Fgh-compare","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwassimk%2Fgh-compare","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwassimk%2Fgh-compare/lists"}