title: Azure Devops: how to squash all commits of a PR as a patch to download for test?
body: <p>I am working on <code>Azure DevOps</code>.</p>
  <p>I have a PR (pull request) is made from branch A to branch B, which contains 100+ commits. Now when I merge it to branch B, the PR build throw errors.</p>
  <p>Now, I try to understand why the build will fail. I would like to download all commits in this PR as a .patch file so that I can apply it to local repo (on branch B) and build it and see why build break.</p>
  <p>Is there a way on Azure DevOps to download the patch from a PR?</p>
  <p>I know in github, we can easily do this by add &quot;.patch&quot; in the PR's URL, like this: <a href="https://github.com/AAA/BBB/pull/123456.patch" rel="nofollow noreferrer">https://github.com/AAA/BBB/pull/123456.patch</a> is the change patch from PR: <a href="https://github.com/AAA/BBB/pull/123456" rel="nofollow noreferrer">https://github.com/AAA/BBB/pull/123456</a></p>