tRuEsAtM
tRuEsAtM

Reputation: 3678

How to use Git cherry command in VSTS?

I have 2 branches for a repo in VSTS. feature1 and master

enter image description here

I have a command line task to run git cherry command.

enter image description here

After running the build I am getting the following error in the command line task of Git.

enter image description here

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

enter image description here

Please let me know how to achieve this. Thanks!

Upvotes: 1

Views: 263

Answers (1)

starian chen-MSFT
starian chen-MSFT

Reputation: 33738

You need to specify arguments of git command in Arguments box, such as Tool: git; Arguments: cherry origin/$(build.SourceBranchName) origin/master.

enter image description here

Upvotes: 1

Related Questions