Relative Content

Tag Archive for gitazure-devops

How to cherry pick one commit from dev to main?

In a repository, there’s a dev branch and a main branch. There’s been a few commits in the dev branch and I want to take a specific commit to the main branch. I’m using Azure DevOps/GitHub Desktop and everything I’ve tried, it appears to take all the commits and not just the specific commit. I can’t push directly to main; I need to use a pull request. How can I merge a single commit?

How to cherry pick one commit from dev to main?

In a repository, there’s a dev branch and a main branch. There’s been a few commits in the dev branch and I want to take a specific commit to the main branch. I’m using Azure DevOps/GitHub Desktop and everything I’ve tried, it appears to take all the commits and not just the specific commit. I can’t push directly to main; I need to use a pull request. How can I merge a single commit?

Only fetch changed files

I want to modify this existing pipeline (which publishes to a test server) to only get files modified on the current branch. The issue I’m running into right now, is if one person pushes to branch A and the other to branch B, the pipeline overwrites all of the files with files from branch B, regardless of whether or not they were actually modified. I tried updating the checkout to fetchDepth: 0, but this didn’t work.

Azure Devops Git Repo Pipeline – Only fetch changed files

I want to modify this existing pipeline (which publishes to a test server) to only get files modified on the current branch. The issue I’m running into right now, is if one person pushes to branch A and the other to branch B, the pipeline overwrites all of the files with files from branch B, regardless of whether or not they were actually modified. I tried updating the checkout to fetchDepth: 0, but this didn’t work.

How to make an Azure DevOps branch policy pipeline which also performs a “simulated” merge build and test?

In addition to our current branch policy pipeline, which performs a build of the proposed branch to be merged and runs unit tests within build, I would like to add an extra step which then simulates the resultant merge before integration with main code. If the 2nd-level build and test also passes, then the PR should be able to be completed (post normal Peer/code review). As we currently have several occasions where bugs/test failures are only being picked up after merge.