I have 2 branches for a repo in VSTS. feature1 and master
I have a command line task to run git cherry command.
After running the build I am getting the following error in the command line task of Git.
Before building the feature1
branch, I would like to check whether it has all the changes from master
branch and to accomplish this I want to run git cherry command.
I have a hosted VSTS agent on a server under my organization. The screen looks like
Please let me know how to achieve this. Thanks!
You need to specify arguments of git command in Arguments box, such as Tool: git
; Arguments: cherry origin/$(build.SourceBranchName) origin/master
.