GitLab:有没有一种方法可以保护分支不受命令行影响? [英] GitLab: Is there a way to protect a branch from command line?

查看:77
本文介绍了GitLab:有没有一种方法可以保护分支不受命令行影响?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从GitLab用户界面了解其操作方式( http://gitlabdomain.com/ProjectNamespace/Project /protected_branches ),但是有没有办法从命令行保护"特定分支?

Am aware of how its done from the GitLab UI (http://gitlabdomain.com/ProjectNamespace/Project/protected_branches), but is there a way to "Protect" a particular branch from the command line?

推荐答案

当然,您需要第三方命令行工具,或者直接使用REST API.

Sure, you need a third-party command-line tool for that though, or use the REST API directly yourself.

检查 http://www.rubydoc.info/gems/gitlab/frames https://about.gitlab.com/applications/

这篇关于GitLab:有没有一种方法可以保护分支不受命令行影响?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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