<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Specita</title>
    <description>The latest articles on DEV Community by Specita (@specita).</description>
    <link>https://dev.to/specita</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4262096%2F7705c3fd-9437-402f-bbb2-ba56a747e8da.png</url>
      <title>DEV Community: Specita</title>
      <link>https://dev.to/specita</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/specita"/>
    <language>en</language>
    <item>
      <title>GitHub compare two tags: see what changed between releases</title>
      <dc:creator>Specita</dc:creator>
      <pubDate>Tue, 24 Nov 2026 07:50:59 +0000</pubDate>
      <link>https://dev.to/getspecita/github-compare-two-tags-see-what-changed-between-releases-i49</link>
      <guid>https://dev.to/getspecita/github-compare-two-tags-see-what-changed-between-releases-i49</guid>
      <description>&lt;p&gt;To compare two tags on GitHub, open &lt;code&gt;https://github.com/OWNER/REPO/compare/v1.2.0...v1.3.0&lt;/code&gt;. The first tag is the base, and the second is what you're comparing it to. GitHub shows the commits, the changed files, and the contributors between them. It's the quickest way to answer "what went into this release?", and the same comparison works from the &lt;code&gt;gh&lt;/code&gt; CLI and the REST API.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to compare two tags in the browser
&lt;/h2&gt;

&lt;p&gt;You have two routes. &lt;a href="https://docs.github.com/en/pull-requests/committing-changes-to-your-project/viewing-and-comparing-commits/comparing-commits" rel="noopener noreferrer"&gt;GitHub's docs&lt;/a&gt; describe appending &lt;code&gt;/compare&lt;/code&gt; to your repository's path.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Open &lt;code&gt;https://github.com/OWNER/REPO/compare&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;In the &lt;strong&gt;base&lt;/strong&gt; dropdown, pick the older tag. You can type a tag name there, even though it's labeled as a branch.&lt;/li&gt;
&lt;li&gt;In the &lt;strong&gt;compare&lt;/strong&gt; dropdown, pick the newer tag.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Or just edit the URL directly:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;https://github.com/acme/app/compare/v1.2.0...v1.3.0
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Put the older tag first. If you reverse them, GitHub often shows "There isn't anything to compare", or the differences in the wrong direction.&lt;/p&gt;

&lt;p&gt;The page has three useful parts: the commit list, the pull requests behind those commits if you follow them, and the file diff. For a large release, start with the commit list and only open the diff for the risky parts.&lt;/p&gt;

&lt;h2&gt;
  
  
  Two dots and three dots
&lt;/h2&gt;

&lt;p&gt;This trips up nearly everyone at some point. Your URL can use either.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Syntax&lt;/th&gt;
&lt;th&gt;What it shows&lt;/th&gt;
&lt;th&gt;Use it when&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;v1.2.0...v1.3.0&lt;/code&gt; (three dots)&lt;/td&gt;
&lt;td&gt;Changes on v1.3.0 since the point where the two lines diverged&lt;/td&gt;
&lt;td&gt;You want to see what the newer tag added. The default&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;v1.2.0..v1.3.0&lt;/code&gt; (two dots)&lt;/td&gt;
&lt;td&gt;The direct difference between the two tags&lt;/td&gt;
&lt;td&gt;You want the exact difference between the two&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;For two tags on a straight line of history, the two forms give the same result. They differ when your tags sit on different branches. A hypothetical example: a hotfix tag &lt;code&gt;v1.2.1&lt;/code&gt; on a release branch, compared to &lt;code&gt;v1.3.0&lt;/code&gt; on main. Three dots shows what main has that the common ancestor doesn't, leaving out the hotfix's own changes. Two dots shows the difference between the code in each tag, including what the hotfix has that &lt;code&gt;v1.3.0&lt;/code&gt; lacks. If you're asking "did the hotfix make it into 1.3.0?", two dots gives you a clearer answer.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to compare from the command line
&lt;/h2&gt;

&lt;p&gt;With plain Git, make sure that your tags are fetched first:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git fetch --tags

git log --oneline v1.2.0..v1.3.0   &lt;span class="c"&gt;# commits in v1.3.0 and not in v1.2.0&lt;/span&gt;
git diff --stat v1.2.0 v1.3.0      &lt;span class="c"&gt;# files changed, with counts&lt;/span&gt;
git diff v1.2.0 v1.3.0 -- src/     &lt;span class="c"&gt;# the diff, limited to a folder&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Note how the dots mean something different here. In &lt;code&gt;git log&lt;/code&gt;, two dots means commits reachable from the second and not the first, which is usually what you want for release notes. In &lt;code&gt;git diff&lt;/code&gt;, two dots and a space do the same thing. This mismatch between &lt;code&gt;log&lt;/code&gt; and &lt;code&gt;diff&lt;/code&gt; is a long-standing Git quirk.&lt;/p&gt;

&lt;p&gt;To list the pull requests in a range, the commit subjects usually include their numbers when you squash-merge. To open the comparison from your terminal:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;gh browse --no-browser   &lt;span class="c"&gt;# prints the repository URL&lt;/span&gt;
gh api repos/acme/app/compare/v1.2.0...v1.3.0 --jq &lt;span class="s1"&gt;'.total_commits, .files[].filename'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  How to compare with the API
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://docs.github.com/en/rest/commits/commits#compare-two-commits" rel="noopener noreferrer"&gt;GitHub's REST API&lt;/a&gt; has a compare endpoint that returns the same data as JSON:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -H &lt;span class="s2"&gt;"Authorization: Bearer $GITHUB_TOKEN"&lt;/span&gt; \
  https://api.github.com/repos/acme/app/compare/v1.2.0...v1.3.0
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The response includes &lt;code&gt;total_commits&lt;/code&gt;, &lt;code&gt;commits&lt;/code&gt;, and &lt;code&gt;files&lt;/code&gt;. Results are paged, and a very large comparison won't return every file, so check the docs if your releases are big. Use a read-only token, and keep it out of your scripts.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why a comparison can look wrong
&lt;/h2&gt;

&lt;p&gt;If the page says there's nothing to compare, check the order of the tags, then whether both tags exist on GitHub. A tag you created locally doesn't appear until you push it with &lt;code&gt;git push origin v1.3.0&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;If the commit count is huge, check the tag you think of as the base. If you tagged on a branch that was later rebased, or moved a tag, the shared history may be less than you'd expect. Don't move release tags. Create a new one, so that a tag means the same thing forever.&lt;/p&gt;

&lt;p&gt;If the changes don't match what's in production, the tag may not be what you shipped. Compare the commit SHA your deployment reports with the commit the tag points at. A build from an untagged commit is a common cause.&lt;/p&gt;

&lt;h2&gt;
  
  
  Using a comparison for a release review
&lt;/h2&gt;

&lt;p&gt;A comparison is useful for more than curiosity. Before a release, read it with these questions:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Which changes touch payment, auth, or data migrations?&lt;/li&gt;
&lt;li&gt;Did anything merge after QA signed off?&lt;/li&gt;
&lt;li&gt;Are there dependency or lockfile changes you didn't expect?&lt;/li&gt;
&lt;li&gt;Who should check the riskiest change?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;After an incident, the same page narrows the search. If a crash started with &lt;code&gt;v1.3.0&lt;/code&gt;, this comparison is your list of suspects. It's also how you plan an &lt;a href="https://specita.com/blog/ios-app-rollback" rel="noopener noreferrer"&gt;iOS app rollback&lt;/a&gt; or a &lt;a href="https://specita.com/blog/hotfix-process" rel="noopener noreferrer"&gt;hotfix&lt;/a&gt;, since it shows what you'd be taking out. To turn the list into something readable, use a &lt;a href="https://specita.com/blog/release-notes-template" rel="noopener noreferrer"&gt;release notes template&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Tags for mobile releases
&lt;/h2&gt;

&lt;p&gt;Tag every build you might ship, including the build number. For example, &lt;code&gt;ios/2.4.0+317&lt;/code&gt; and &lt;code&gt;android/2.4.0+318&lt;/code&gt;. Now every App Store or Google Play version maps to a commit, and you can compare the two on the same day that a client asks what changed.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;GitHub guidance checked on November 4, 2026.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;This article was created with the help of AI and checked against GitHub's documentation. It first appeared on the &lt;a href="https://specita.com/blog/github-compare-two-tags" rel="noopener noreferrer"&gt;Specita blog&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>github</category>
      <category>git</category>
      <category>devops</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
