TFS - Set a branch to allow check ins of “Merge” changeset only

社会主义新天地 提交于 2019-12-11 03:45:51

问题


In the company I work for we have a Release branch from which we publish versions to production.

I want to prevent a situation where someone checks in changes made in that branch directly without the changes were synced from the development branch.

Is there a way where I could set the Release branch to allow check-ins for change-sets which are of "Merge" type only?

By this I could ensure the change-set was originated from the development branch and achieve my goal in addition to preventing non synced code between production and development branches.


回答1:


You cannot fully restrict a branch to allow merges only. But there is a checkin-policy made by a Microsoft MVP which you can configure. Combined with the checkin-policy from the TFS Power Tools you can configure it to a speficic folder. The configuration process is explained on teh download page.



来源:https://stackoverflow.com/questions/20899859/tfs-set-a-branch-to-allow-check-ins-of-merge-changeset-only

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!