在VSTS中设置GitFlow - 最佳实践? [英] Setup GitFlow in VSTS - Best practices?

查看:150
本文介绍了在VSTS中设置GitFlow - 最佳实践?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有建议如何使用Visual Studio TeamServices设置GitFlow?



我们来自BitBucket,它只是一个简单的init。但在VSTS中,我们找不到任何脚手架。这似乎是我们必须设置很多手动设置,对吧?那么如何在VSTS中为GitFlow建议使用用户组,策略......

解决方案

没有标准的one-点击按钮在VSTS上设置分支和策略以支持GitFlow或其他类型的Git流程框架(如GitHubFlow等)。

设置并不难,但可能涉及许多手动步骤。您可以使用REST API将它变成初始化脚本,以使其生成构建(在分支过滤器上使用通配符),设置分支策略并使用正确的安全性锁定分支。



与此同时,如果团队中有足够的信任,那么GitFlow并没有真正的默认设置......在这种情况下,安全组几乎都是默认团队。

有一个Visual Studio插件,它可以帮助您设置分支结构和分支之间的合并流。




Is there any recommendation how to set up GitFlow with Visual Studio TeamServices?

We come from BitBucket and there it's just a simple init. But in VSTS we cannot find any scaffolding. It seems to be we have to set up a lot of manual settings, right? So how to setup usergroups, policies... for a recommended usage with GitFlow in VSTS?

解决方案

There is no standard one-click button to setup branches and policies on VSTS to support GitFlow or another type of flow framework for Git (like GitHubFlow etc).

The setup isn't too hard, but can involve many manual steps. You'd be able to turn this into an init script using the REST API to have it generate the builds (with wildcards on the branch filters), set the branch policies and lock the branches with the right security.

At the same time, there is not really a default setup for GitFlow if there is enough trust in the team... The security group for just about everything in that case would just be "default team".

There is a Visual Studio plugin by the way, which will help you setup the branch structure and the merge flow between branches.

这篇关于在VSTS中设置GitFlow - 最佳实践?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆