简体   繁体   中英

Is there a TFS policy to allow only merges and not edits?

We have a baseline folder and development branches in TFS. We'd like to add a policy where changes can only be merged into the baseline from a development branch and not edited directly unless you override the policy. How can we do this?

There is no way to enforce this restriction 100%. Options:

  • write a checkin policy [but they can be overridden]
  • write an event hook that notifies you [or takes some other action] when someone commits something that wasn't a merge
  • restrict checkin permissions on the branch to trusted developers / integration managers [but they themselves would have full rights]

There's an example of a "merge only" checkin policy here: http://leon.mvps.org/TFS/MergeOnlyPolicy.aspx

您可以考虑将这些分支机构的安全性限制为负责任的人员。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM