简体   繁体   English

预接收挂钩被拒绝(Gitlab)

[英]pre-receive hook declined (Gitlab)

My school offers me a Gitlab account so we can host our projects. 我的学校为我提供了一个Gitlab帐户,因此我们可以托管我们的项目。

I am the owner, so i can do everything with my project. 我是所有者,所以我可以做我的项目的一切。 If somebody push code to my project, can i review the code before pushing it to the server? 如果有人将代码推送到我的项目,我可以在将代码推送到服务器之前查看代码吗?

When i make them "Master" they push code to my project without letting me review. 当我将它们设置为“ Master”时,他们会将代码推送到我的项目中,而无需我进行审查。

If i make them "Developer i get this strange error and they cant push: 如果我让他们成为“开发人员,则会收到这个奇怪的错误,而他们无法推送:

(pre-receive hook declined)

Some i am asking, why cant they push if i make them "Developer" and can i change some settings so that i need to review the code before pushing it? 我要问的是,如果我将它们设置为“ Developer”,他们为什么不能推送,我是否可以更改一些设置,以便在推送之前需要查看代码?

Thanks. 谢谢。

Youri 优利

By default is the master branch protected in GitLab, "Developers" does not have permission to push to master. 默认情况下,master分支在GitLab中受保护,“开发人员”无权推送到master。

You may find how you administrate the privacy of branches here http://doc.gitlab.com/ce/workflow/protected_branches.html 您可以在以下网址找到如何管理分支机构的隐私: http://doc.gitlab.com/ce/workflow/protected_branches.html

GitLab supports comments on committed changes for feedback to the author, also, GitLab supports "merge request" which allows you to preview code before you merge it into master, see https://about.gitlab.com/2014/09/29/gitlab-flow/ . manbetx客户端打不开支持对所做的更改的评论,以反馈给作者,同时,manbetx客户端打不开支持“合并请求”,它允许您预览代码,然后再合并到母版,请参阅https://about.gitlab.com/2014/09/29/ gitlab-flow /

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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