Updated on 2025-07-24 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.