How to disable writes to all repos in an organisation in Github Enterprise Server 2.10? #46583
Replies: 1 comment 2 replies
-
|
Thanks for your question, @sukumarp2022 Branch protections can be used to prevent writes to all repositories in a GitHub Enterprise Server 2.10 organisation. Branch protections enable you to impose specific rules on your branches, such as requiring pull request reviews before merging or passing status checks before merging. Branch protections can be enforced by specifying the required status checks and pull request reviews in the organisation's default branch of each repository. Here's how to make branch protections stick:
Once these restrictions are in place, no one can push to the default branch unless the necessary conditions are met. The following information is taken from the official GitHub Enterprise Server 2.10 documentation: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Question
Body
I'm in the process of migrating hundreds of repos from GHES to GHEC.
During migration the users aren't supposed to commit anything or push anything to any repo in the organisation.
Is there any way to restrict the pushes all the repos in an organisation in GHES 2.10?
Beta Was this translation helpful? Give feedback.
All reactions