Updated on 2026-05-14 GMT+08:00

Locking a Repository

  • Overview

You can lock a repository to prevent anyone from damaging its upcoming versions.

  • Constraints

Repository members with the set permission can perform this operation.

  • Locking a Repository

Go to the repository homepage to be configured, choose Settings > Security Management > Repository Locking, and enable the watermark setting function to lock the repository. After the repository is locked, it is read-only, and no one can commit code to any branch, create comments, or perform other new operations.

When you filter repositories by locked repository, the filtered repositories are not directly displayed. You need to click the repository group to expand it and confirm the repository information in the subdirectory.