Depending on your security permission, you may be able to freeze branches. Freezing a branch prevents users from making any changes to files in the branch. When a branch is frozen, any command that can affect the code, such as adding a file or creating a repository, is disabled. Commands that do not affect the code, such as getting a file or merging to local files, are enabled.
You may want to freeze a branch for administrative or maintenance purposes. For example, you need build release for multiple platforms. Freeze the corresponding branches to ensure the files cannot be changed during the build process. When you finish, unfreeze the branches.