0

In Azure DevOps, configuring a branch policy ensures the branch cannot be deleted. However this also obliges to use pul requests to make changes to that branch.

Currently we are not using pull requests yet, but we still would like to prevent certain branches from getting deleted.

Is there a way to do that other than branch policy?

1 Answer 1

1

If you disable the "Force Push" permission, it will block users from deleting the branch.

The "Force Push" permission...

Can force an update to a branch, delete a branch, and modify the commit history of a branch. Can delete tags and notes.

See more on these permissions on Microsoft Learn.

2
  • 1
    Thx! Works like a charm. Probably beginner questions but just learning Azure DevOps. May 26 at 7:58
  • No question is a bad question. I'm glad it helped.
    – Fenton
    May 26 at 9:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.