William Jockusch
William Jockusch

Reputation: 27285

Tell Azure devops to use particular options when doing git merges

I want my Azure devops repo to do all merges like this:

git merge branchname -s recursive -Xignore-all-space

Is there a setting somewhere for that?

Upvotes: 0

Views: 37

Answers (1)

Levi Lu-MSFT
Levi Lu-MSFT

Reputation: 30313

I am afraid there is not a setting for this. Azure devops repo doesnot have this feature to run customized git commands currently.

As workaround you can clone your azure repo to your local machine, and run above command on the target branch, then push it to cloud azure repo branch.

You can also create a build pipeline to run above git command in a script task. See here for more information about run git commands in pipeline. You can also check out the example in this thread.

If you want to submit a user voice(Click suggest a feature and choose azure devops) to Microsoft development team. Hope they will consider adding this feature in the future sprint.

Upvotes: 1

Related Questions