Your question is too vague as the answer depends on your/your company's setup. If you are using git with Gitlab or Github, then your development process should be using something like pull requests which naturally offer a protection from inadvertant changes getting into your main branch. Github offers things like teams where you can limit access to essentially read only, but this will all depend on your development infrastructure.
Comments
Your question is too vague as the answer depends on your/your company's setup. If you are using git with Gitlab or Github, then your development process should be using something like pull requests which naturally offer a protection from inadvertant changes getting into your main branch. Github offers things like teams where you can limit access to essentially read only, but this will all depend on your development infrastructure.