Github Collaborators deleting Branchs

Asked

Viewed 57 times

3

On Github how do I set up so that my project’s collaborators do not delete the branchs? There is no restriction to delete in the project’s Settings. Thank you

1 answer

0

Friend,

1. **In your repository you go to `Settings->branches`**

inserir a descrição da imagem aqui

2. **In the menu on the left goes to:**

inserir a descrição da imagem aqui

3. **Near "Branch Protection Rules", click on "add Rule":**

inserir a descrição da imagem aqui

4. **Under "Branch name Pattern", type the branch name or a protection pattern you want.**

inserir a descrição da imagem aqui

5. If you want, you can configure some specific security rules for your branch. But if you do until step 4, it will already add the protection you want.

inserir a descrição da imagem aqui

6. To finish, just click **Confirm** or **Save changes**

Translated from Github support setting up branch protections

Browser other questions tagged

You are not signed in. Login or sign up in order to post.