Commit 4588c325 authored by GitLab Bot's avatar GitLab Bot

Automatic merge of gitlab-org/gitlab-ce master

parents f0e17b7d a52935fb
...@@ -152,13 +152,9 @@ which visibility level you select on project settings. ...@@ -152,13 +152,9 @@ which visibility level you select on project settings.
### Protected branches ### Protected branches
To prevent people from messing with history or pushing code without Additional restrictions can be applied on a per-branch basis with [protected branches](project/protected_branches.md).
review, we've created protected branches. Read through the documentation on Additionally, you can customize permissions to allow or prevent project
[protected branches](project/protected_branches.md) Maintainers and Developers from pushing to a protected branch. Read through the documentation on
to learn more.
Additionally, you can allow or forbid users with Maintainer and/or
Developer permissions to push to a protected branch. Read through the documentation on
[Allowed to Merge and Allowed to Push settings](project/protected_branches.md#using-the-allowed-to-merge-and-allowed-to-push-settings) [Allowed to Merge and Allowed to Push settings](project/protected_branches.md#using-the-allowed-to-merge-and-allowed-to-push-settings)
to learn more. to learn more.
......
...@@ -5,9 +5,8 @@ type: reference, howto ...@@ -5,9 +5,8 @@ type: reference, howto
# Protected Branches # Protected Branches
[Permissions](../permissions.md) in GitLab are fundamentally defined around the [Permissions](../permissions.md) in GitLab are fundamentally defined around the
idea of having read or write permission to the repository and branches. To idea of having read or write permission to the repository and branches. To impose
prevent people from messing with history or pushing code without review, we've further restrictions on certain branches, they can be protected.
created protected branches.
## Overview ## Overview
......
# Introduction to GitLab Flow # Introduction to GitLab Flow
![GitLab Flow](img/gitlab_flow.png) ![GitLab Flow](img/gitlab_flow.png)
...@@ -60,7 +59,7 @@ For example, many projects do releases but don't need to do hotfixes. ...@@ -60,7 +59,7 @@ For example, many projects do releases but don't need to do hotfixes.
In reaction to Git flow, GitHub created a simpler alternative. In reaction to Git flow, GitHub created a simpler alternative.
[GitHub flow](https://guides.github.com/introduction/flow/index.html) has only feature branches and a `master` branch. [GitHub flow](https://guides.github.com/introduction/flow/index.html) has only feature branches and a `master` branch.
This flow is clean and straightforward, and many organizations have adopted it with great success. This flow is clean and straightforward, and many organizations have adopted it with great success.
Atlassian recommends [a similar strategy](https://www.atlassian.com/blog/archives/simple-git-workflow-simple), although they rebase feature branches. Atlassian recommends [a similar strategy](https://www.atlassian.com/blog/git/simple-git-workflow-is-simple), although they rebase feature branches.
Merging everything into the `master` branch and frequently deploying means you minimize the amount of unreleased code, which is in line with lean and continuous delivery best practices. Merging everything into the `master` branch and frequently deploying means you minimize the amount of unreleased code, which is in line with lean and continuous delivery best practices.
However, this flow still leaves a lot of questions unanswered regarding deployments, environments, releases, and integrations with issues. However, this flow still leaves a lot of questions unanswered regarding deployments, environments, releases, and integrations with issues.
With GitLab flow, we offer additional guidance for these questions. With GitLab flow, we offer additional guidance for these questions.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment