There's a challenge!
I'm working on two projects (Project1
and Project2
) within the same code repository (main
branch). I've made changes to both projects and linked separate work items to each set of changes during my commits.
Now, I only want to push the changes for Project1
to a different branch (Target branch). However, when I create a pull request, it includes files from both projects.
Is there a way to leverage the linked work items during the push process to only push Project1 changes?
Any advice would be greatly appreciated!
I've tried using cherry-picking, but I'm curious if there's a way to achieve this directly through the linked work items.
Currently, there isn't such feature can achieve this directly through the linked work items. It's a good choice to use git cherry-picking, which enables arbitrary Git commits to be picked by reference and appended to the current working HEAD
. Cherry picking is the act of picking a commit from a branch and applying it to another.
Azure Repos provides limited support for cherry-picking, you need to use git command or VS. Also, you can see this ticket whether is helpful for you. If you want Azure Repos to provide more support for cherry-picking, you can submit a feature request here.