Azure Devops Repos compare file between two branches

1k Views Asked by At

I have a repository in Azure Repos. I have two branches "develop" and "abc". I have the same file (pom.xml) which exists in those 2 branches. How can I see the differences between branches for this file? I tried to use "Compare" option but it compares only between commits within the same branch.

enter image description here

3

There are 3 best solutions below

3
On

Sorry, Azure Devops UI doesn't provide that feature.

I'm afraid you'll have to resort to other comparing tools.

2
On
2
On

To compare files in different branches in DevOps UI you can use Pull request, which is better than branch compare as it shows conflict tab. You can check either commit or conflict tab.

enter image description here

Or you need checkout the repo to local machine, use compare tool to pick these two files for comparation.

If you would like this feature in DevOps, you can raise a user voice ticket via link: https://developercommunity.visualstudio.com/AzureDevOps/suggest?space=21.