Insights

Comparing Commits Using Tags In Azure Devops

Compare Two Commits In Azure DevOps

This blog post will go through how to compare two commits in Azure DevOps and provide it in an easy to understand manner for stakeholders to make judgements.

Compare two commits code changes in Azure DevOps using tags.

In this blog post we'll look at a small trick you can do to compare two commits in Azure DevOps.

Adding Tags To Commits

To add a tag to a specific commit go to your DevOps repo and under the 'Repos' category go to 'Commits' NOT 'Tags'.

Add a tag in Azure DevOps

Choose a commit you want to compare. and on the right side of the commit there will be a menu drop down, click it and choose 'Create Tag'.

Click create tag in Azure DevOps to add a new tag

Name your tag appropriately and do the same for another commit you want to compare.

Comparing The Two Tags

After you are finished tagging the commits you want to compare, click 'Tags' under the Repos menu.

To compare commits click 'Tags' under the Repos menu

Using the same side menu, select one of your commits as the compare branch.

Select one of your commits as the compare branch

Now, select the 'Compare Tags' option on the other tag and start comparing the two tags.

Select the 'Compare Tags' option to start comparing the two tags

Click 'Files' to see what has changes between the two tags.

Click 'Files' to see what has changes between the two tags

Closing

I hope this post gives you an easy way to compare a few commits and the files that have changed in detail, thanks for reading.

👋 Hey Sitecore Enthusiasts!

Sign up to our bi-weekly newsletter for a bite-sized curation of valuable insight from the Sitecore community.

What’s in it for you?

  • Stay up-to-date with the latest Sitecore news
  • New to Sitecore? Learn tips and tricks to help you navigate this powerful tool
  • Sitecore pro? Expand your skill set and discover troubleshooting tips
  • Browse open careers and opportunities
  • Get a chance to be featured in upcoming editions
  • Learn our secret handshake
  • And more!
Sitecore Snack a newsletter by Fishtank Consulting