Azure Repos文件夹/目录比较 [英] Azure Repos Folder/Directory Comparison

查看:100
本文介绍了Azure Repos文件夹/目录比较的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们开始通过Git Repos使用Azure Devops上的版本控制.
被问到的一个主题是,是否有一种方法可以比较Azure Devops上的目录/分支/文件夹/存储库,例如,在部署到阶段之前,查看提交之前在环境目录之间值得注意的变化/差异.

We are starting to utilize the version control on Azure Devops with the Git Repos.
One topic that was asked is if there is a way to compare directories/branches/folders/repos on Azure Devops, say before deploying to a stage to see what chnages/differences are notable between the environments' directories before committing.

是否存在我们可以利用的内置工具/任务?也许是BitBucket?

Is there such a tool/task built in that we can utilize? Perhaps BitBucket?

基本上,我们正在寻找与桌面文件包含工具BeyondCompare相似的东西,但用于Azure Devops中的目录比较.

Basically, we are looking for something similar to BeyondCompare, the desktop file comprison tool, but for Directories comparison in Azure Devops.

推荐答案

Azure DevOps具有

Azure DevOps has a REST API, which includes:

  • a Git REST API
  • more accurately a Git Diff API

差异将目标版本与基本版本进行比较,并返回仅在目标版本中的项目列表.如果未指定目标版本或基本版本,则使用默认分支.

Diffs compare a target version with a base version and return a list of items that are only in the target version. If either the target or base version isn't specified, then the default branch is used.

因为您正在处理查看您的通过Visual Studio或命令行的历史记录.

Since you are dealing with Azure DevOps Git repositories, you can also clone it locally, and review your history through Visual Studio or Command-line.

这篇关于Azure Repos文件夹/目录比较的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆